Skip to content

Incorrect results with stacked SoundFonts #1492

Answered by derselbst
stuerp asked this question in Q&A
Discussion options

You must be logged in to vote

You mean to interfere / avoid that system on message triggering the bank-selection change? In this case, the easiest way would be to avoid sending any sysex messages to fluidsynth. Alternatively you can filter out that particular sysex message, here's fluidsynth's parsing code:

/* GM or GM2 system on */
if(data[0] == MIDI_SYSEX_UNIV_NON_REALTIME
&& (data[1] == synth->device_id || data[1] == MIDI_SYSEX_DEVICE_ID_ALL || synth->device_id == MIDI_SYSEX_DEVICE_ID_ALL)
&& data[2] == MIDI_SYSEX_GM_ID)
{
if(handled)
{
*handled = TRUE;
}
if(!dryrun && (data[3] == MIDI_SYSEX_GM_ON

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@stuerp
Comment options

@stuerp
Comment options

@derselbst
Comment options

@stuerp
Comment options

Comment options

You must be logged in to vote
2 replies
@stuerp
Comment options

@derselbst
Comment options

Answer selected by stuerp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants