From cd83bcca3b1c0819f623c13949fb09beb9340664 Mon Sep 17 00:00:00 2001 From: nonmateria Date: Wed, 12 Oct 2022 18:00:15 +0200 Subject: [PATCH] Enable the use of the octave 0 for the midi operator The midi operator will still not trigger when the octave field is empty. --- sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim.c b/sim.c index 6882172..85b3da7 100644 --- a/sim.c +++ b/sim.c @@ -281,7 +281,7 @@ BEGIN_OPERATOR(midi) Glyph velocity_g = PEEK(0, 4); Glyph length_g = PEEK(0, 5); U8 octave_num = (U8)index_of(octave_g); - if (octave_num == 0) + if (octave_g == '.') return; if (octave_num > 9) octave_num = 9;