I have a query, say i want to get hold of sample 6 which is the drum and only if it's note c-5, which is on channel number 2.
With the following, it's almost there, but it picks up on there being that particular drum played at the start of the tune, once it loops it works as per the song. so i dont know if it's the lib itself or the song has a hidden drum sound with no volume that hasnt been cleaned from the final song.
I've found that if it's channel 2, it is in fact 1.
Basically what i'd like to do, is check for the sample on the track_num eg, channel number, with the note and octave eg, C-5
int sample_check_minifmod( int sample_num, int channel_num )
{
unsigned int scanner;
int result,sample_check, note_check;
scanner =MiniFmod_GetSynch( channel_num );
sample_check =int(scanner >> 8);
note_check =int(scanner & 0xff);
if ( int(sample_check)==sample_num)
{
result=1;
}
else
{
result=0;
}
return result;
}
Cheers big ears,
Clyde.