diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-15 13:18:12 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-15 13:18:12 +0900 |
commit | d1b1ec92f02e3c02850b8015ec5b13407ab84aa2 (patch) | |
tree | 90406bfc92d90b163a4efa07ebe29e94fb468e92 | |
parent | 71e82de906cdb5567390c88cf420e12098e1e082 (diff) | |
download | Orca-d1b1ec92f02e3c02850b8015ec5b13407ab84aa2.tar.gz Orca-d1b1ec92f02e3c02850b8015ec5b13407ab84aa2.zip |
Allowed for octave 0
-rw-r--r-- | desktop/core/library/_midi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/core/library/_midi.js b/desktop/core/library/_midi.js index 2b0cab3..f034a52 100644 --- a/desktop/core/library/_midi.js +++ b/desktop/core/library/_midi.js @@ -28,7 +28,7 @@ function OperatorMidi (orca, x, y, passive) { // 0 - 16 const channel = clamp(orca.valueOf(rawChannel), 0, 15) // 1 - 8 - const octave = clamp(rawNote === 'b' ? rawOctave + 1 : rawOctave, 1, 8) + const octave = clamp(rawNote === 'b' ? rawOctave + 1 : rawOctave, 0, 8) // 0 - 11 const note = ['C', 'c', 'D', 'd', 'E', 'F', 'f', 'G', 'g', 'A', 'a', 'B'].indexOf(rawNote === 'e' ? 'F' : rawNote === 'b' ? 'C' : rawNote) // 0 - G(127) |