I\'m looking for a way to mix 2 or more midi files, each with their own sound font files. I\'ve found the following code for one file and tried to do multiple music players
I had exactly same issue as you. All tracks play with the first sound font instrument. I followed your solution but it not work at first. Finally, I resolve the problem. As your mentioned, the sequence of calling functions really maters. Yes, it is. Actually, the sequence calling should be like this:
.....
MusicSequenceSetAUGraph(s, _processingGraph);
.......
MusicTrackSetDestNode(track[i], samplerNodes[i]);
......
[self loadFromDLSOrSoundFont];
......
MusicPlayerStart(p);
This works in my project.