Skip to content

Commit

Permalink
Fix for previous commit; now instrument-without-note after note-cut o…
Browse files Browse the repository at this point in the history
…r note-off triggered a note again.
  • Loading branch information
sagamusix committed Mar 9, 2023
1 parent 73e9d60 commit 3ff00a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ void csf_note_change(song_t *csf, uint32_t nchan, int note, int porta, int retri
if (NOTE_IS_CONTROL(note)) {
// hax: keep random sample numbers from triggering notes (see csf_instrument_change)
// NOTE_OFF is a completely arbitrary choice - this could be anything above NOTE_LAST
chan->new_note = NOTE_OFF;
chan->note = chan->new_note = NOTE_OFF;
switch (note) {
case NOTE_OFF:
fx_key_off(csf, nchan);
Expand Down

0 comments on commit 3ff00a1

Please sign in to comment.