• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to write visualization software?

cchen

Diamond Member
I am part of a software design team to write a dance game with music, similar to Dance Dance Revolution by Konami. I ran across Basically what I want do have in my project is visualizations that correspond to music, such as some of the Winamp plugins.
How do you make the music correspond to the visualization? I plan on using MP3 or wav files and I can't figure out how
you could analyze the sound file without some sort of Fourier analysis.
 
Why not adapt some of the opensource code that does that sort of thing? I'm fairly sure that there are some linux programs that do what you describe. Haven't used them though, so can't make any reccomendations.
 
Different visualisations need different data.

The time domain data will give you oscilloscope type displays - e.g. simple oscilloscope, flowers, fountains, etc.

The frequency domain data is used for spectrum analysers, and frequency dependent actions - e.g. disco light type effects

The MP3 bitstream after decompression leaves you with frequency domain data, which then needs fourier synthesis to obtain time domain data suitable for output to a wave device. This means that if your music is stored as MP3, you immediately have available both the time and frequency spectra, with no additional processing.
 
Back
Top