Skip to content

Commit

Permalink
Fix XG drum bank selection logic
Browse files Browse the repository at this point in the history
Fixes #1307
  • Loading branch information
derselbst committed Mar 26, 2024
1 parent a3b88cc commit 895f07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synth/fluid_chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ fluid_channel_set_bank_msb(fluid_channel_t *chan, int bankmsb)
/* XG bank, do drum-channel auto-switch */
/* The number "120" was based on several keyboards having drums at 120 - 127,
reference: https://lists.nongnu.org/archive/html/fluid-dev/2011-02/msg00003.html */
chan->channel_type = (120 <= bankmsb) ? CHANNEL_TYPE_DRUM : CHANNEL_TYPE_MELODIC;
chan->channel_type = (120 == bankmsb || 126 == bankmsb || 127 == bankmsb) ? CHANNEL_TYPE_DRUM : CHANNEL_TYPE_MELODIC;
return;
}

Expand Down

0 comments on commit 895f07d

Please sign in to comment.