How nguyenbatai30906/melodycore works
MelodyCore contains two standalone music-visualizer applications: the Go/Ebiten visualizer for “Ai Đưa Em Về” and the Rust/SDL2 lyric video for “Phong.” Their workflows start when each app launches, load its timed lyric data and local media, advance lyrics against playback, and render the visuals. The excerpts show the Rust rendering helper directly; Go drawing and timing live in App. The README documents both products. Resource files are represented as local assets; unsampled Go lyric behavior is limited to its indexed reference and excerpt context.
Main entry points: app.rs Playback App · app.go Visualizer App · main.go Go Entrypoint · main.rs Rust Entrypoint
Components 13
Go Visualizer
- Go Entrypoint
aiduaemve-go/main.go - Visualizer App
aiduaemve-go/app.go - Timed Lyrics
aiduaemve-go/lyrics.go - Audio, Images, Fonts
aiduaemve-go/resources - Rendered Visualizer
aiduaemve-go/app.go
Rust Lyric Video
- Rust Entrypoint
phong-rust/src/main.rs - Playback App
phong-rust/src/app.rs - Timed Lyrics
phong-rust/src/lyrics.rs - Text and Effects
phong-rust/src/gfx.rs - Audio, Images, Fonts
phong-rust/resources - Background Images
phong-rust/img - Rendered Lyric Video
phong-rust/src/app.rs
Other components
- Viewer
Connections 13
- Viewer → Go Entrypoint: launches
README.md - Go Entrypoint → Visualizer App: starts
aiduaemve-go/main.go - Visualizer App → Timed Lyrics: loads verses
aiduaemve-go/app.go - Visualizer App → Audio, Images, Fonts: loads media
aiduaemve-go/app.go - Visualizer App → Rendered Visualizer: draws frames
aiduaemve-go/app.go - Viewer → Rust Entrypoint: launches
README.md - Rust Entrypoint → Playback App: runs
phong-rust/src/main.rs - Playback App → Timed Lyrics: loads verses
phong-rust/src/app.rs - Playback App → Audio, Images, Fonts: loads audio
phong-rust/src/app.rs - Playback App → Background Images: loads textures
phong-rust/src/app.rs - Playback App → Text and Effects: renders text
phong-rust/src/app.rs - Text and Effects → Timed Lyrics: resolves fonts
phong-rust/src/gfx.rs - Playback App → Rendered Lyric Video: presents frames
phong-rust/src/app.rs