From 3ff00a12e30687a3fedeb420b7bdc4e47dff09b0 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Thu, 9 Mar 2023 23:32:05 +0100 Subject: [PATCH] Fix for previous commit; now instrument-without-note after note-cut or note-off triggered a note again. --- player/effects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/effects.c b/player/effects.c index 8a6d19a8e..c6f058b57 100644 --- a/player/effects.c +++ b/player/effects.c @@ -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);