retrigger for bufferd notes works!

This commit is contained in:
Oleksiy 2021-03-07 18:57:50 +02:00
parent 383cae76d7
commit 5bbaf130cd
1 changed files with 3 additions and 2 deletions

View File

@ -64,8 +64,7 @@ void noteOn(byte channel, byte note, byte velocity) {
void noteOff(byte channel, byte note, byte velocity) { void noteOff(byte channel, byte note, byte velocity) {
if (channel == MIDI_CHANNEL) { if (channel == MIDI_CHANNEL) {
updateBuffer(note, gate); updateBuffer(note, 0);
gate = 0;
} }
} }
@ -156,6 +155,7 @@ void updateControl(){
kIntensityMod.setFreq(mod_speed); kIntensityMod.setFreq(mod_speed);
// Debugging // Debugging
/*
Serial.print("Buffer Index: "); Serial.print("Buffer Index: ");
Serial.print(bufferIndex); Serial.print(bufferIndex);
@ -172,6 +172,7 @@ void updateControl(){
Serial.print(knob4calibrated); Serial.print(knob4calibrated);
Serial.println(); Serial.println();
*/
// MIDI DIN // MIDI DIN
MIDI.read(); MIDI.read();