I am trying to create a game similar to Guitar-Hero (something like this ) and I want to be able to analyze the audio file provided by the user and automatically create levels, but I'm not sure how to do it.
I thought that maybe I need to use the BPM detection algorithm and put the arrow on the bit and rail on some kind of repeating pattern, but I don't know how to implement them.
In addition, I use NAudio BlockAlignReductionStream, which has a Read method that copies byte [] data, but what happens when I read a two-channel audio file? Does it read 1 byte from the first channel and 1 byte from the second? (because it says 16-bit PCM) and does the same with a 24-bit and 32-bit float?
source
share