Hello, I’m trying to make a game that’s mostly similar to Musiverse but I can’t figure out how they programmed the track generation from the music scanning. Does anyone have sample scripts for this function? I only need samples, not full scripts!
I’m one of the initial developer of Musiverse. The track generation is a result of multiple years of iteration. The principle of operation is very simple, but coding from scratch can take some time. First, you need to get the byte data of the music from the source of your choice. You need to decode it to raw PCM data (Anrdoid and iOS has native API for that) to get an array of normalized floats so you can do calculations on the music like searching for patterns, calculating the average loudness. After you got the desired output from the PCM data, you can start visualize it. In Musiverse we calculate the path of the music, than generate a mesh from a simple cross-section and duplicate it along the path.
Hope that helps, I can’t share business secret online :P…