This is more of a design question more than it is a code question. Perhaps someone with more insight into the API would have a better solution.
I am trying to figure out the answer to this question:
What notes / instruments are going to be played in a given MOD file?
I can assume that each track has only one instrument.
Or in other words, I need to know in advance while streaming, what notes or sounds are going to be played in the sound.mod file up to x MS from my current position.
Lets assume my application loads the MOD file up and it seperates all 6 tracks. I can use the API to get the track length, its volume, number of samples, etc…..
Lets also assume the first instrument (a basic piano definition) plays a ‘G’ note at: 750ms on track1 for 100ms in length.
How do I scan for this?
- Mousey asked 13 years ago
My solution would be the use of the FMUSIC_SetZxxCallback() feature. Of course this would require adding a whole heap of Zxx commands into the MOD beforehand in order to get the callback triggered. This is an example of thinking outside the box.
Please login first to submit.