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) {
if (channel == MIDI_CHANNEL) {
updateBuffer(note, gate);
gate = 0;
updateBuffer(note, 0);
}
}
@ -156,6 +155,7 @@ void updateControl(){
kIntensityMod.setFreq(mod_speed);
// Debugging
/*
Serial.print("Buffer Index: ");
Serial.print(bufferIndex);
@ -172,6 +172,7 @@ void updateControl(){
Serial.print(knob4calibrated);
Serial.println();
*/
// MIDI DIN
MIDI.read();