So you want to compare a numeric xm-note with an textual representation as shown in a tracker ?
Try something like this:
int stringToXmNote(char *note)
{
char map[7]={
9, // A- A#
11, // B-
0, // C- C#
2, // D- D#
4, // E-
5, // F- F#
7 // G- G#
};
// map first character from [C,D,E,F,G,A,B] to [0,2,4,5,7,9,11]
int n= map[note[0]-'A'];
// half note: second character is '#'
if (note[1]=='#') n++;
// extract octave
int o= note[2] - '0';
// convert to note-number
return (o*12)+n+1;
}
Use like this:
int xmnote= MiniFmod_GetSynch(channel) & 0xff;
if (xmnote == stringToXmNote("D#4"))
{
...
}