Browse Source

Enable the use of the octave 0 for the midi operator

The midi operator will still not trigger when the octave field is empty.
master
nonmateria 3 years ago
parent
commit
cd83bcca3b
  1. 2
      sim.c

2
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;

Loading…
Cancel
Save