diff --git a/examples/E03_MIDI/E03_MIDI.ino b/examples/E03_MIDI/E03_MIDI.ino index 4d020fc..53f769a 100644 --- a/examples/E03_MIDI/E03_MIDI.ino +++ b/examples/E03_MIDI/E03_MIDI.ino @@ -90,7 +90,7 @@ void loop(){ } }else{ if (playing){ - MIDI.sendNoteOff(OpenPipe.note,0,1); // Stop the note + MIDI.sendNoteOff(previous_note,0,1); // Stop the note playing = false; } }