Skip to content

Commit 99cee7f

Browse files
committed
Fix DATA_ENTRY_MSB being ignored
1 parent f8cdcb8 commit 99cee7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/synth/fluid_synth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,11 @@ fluid_synth_cc_LOCAL(fluid_synth_t *synth, int channum, int num)
18361836
if((fluid_channel_get_cc(chan, NRPN_MSB) == 120)
18371837
&& (fluid_channel_get_cc(chan, NRPN_LSB) < 100))
18381838
{
1839+
if(num == DATA_ENTRY_LSB)
1840+
{
1841+
// SF2 NRPNs must be processed, after having received DATA_LSB and DATA_MSB in that order.
1842+
break;
1843+
}
18391844
nrpn_select = chan->nrpn_select;
18401845

18411846
if(nrpn_select < GEN_LAST)

0 commit comments

Comments
 (0)