Hello all, I want to load a MIDI file from memory, then add some (but not all) of its tracks to a player. I am trying the following:
[...] fluid_player_t * tmpPlayer = new_fluid_player(synth); fluid_player_add_mem(tmpPlayer, data, len); int i; int trackn = 0; fluid_track_t * tmpTrack; trackTo = MIN(trackTo, fluid_player_count_tracks(tmpPlayer)); for (i = trackFrom; i < trackTo; i++) fluid_player_add_track(player, fluid_player_get_track(tmpPlayer, i)); [...] That is, loading a temporary player from memory, copying the range (trackFrom, trackTo) to a new player, then deleting the first player. As you can see, I use a lot of "private" functions to accomplish this, which is not a good thing. Among other problems, I have issues with track ownership and track numbers. Is there another way to do this? What would you recommend? Regards, Camilo _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev