0
0

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?

  • You must to post comments
0
0

I should also add that the specific note doesn’t really matter just so long as I know a note will be played at time XYZ on track 1

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.