Skip to content

Commit 44cde87

Browse files
committed
Fix all note off issue for note latch on
1 parent c522c94 commit 44cde87

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Applications/Note/Note.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,16 @@ void Note::PlayView() {
293293
}
294294

295295
playView.Start();
296+
297+
if(runtimes[0].noteLatch.IsEnabled())
298+
{
299+
MatrixOS::MIDI::Send(MidiPacket::ControlChange(config->untimes[0].channel, 123, 0), MIDI_PORT_ALL); // All notes off
300+
}
301+
302+
if(runtimes[1].noteLatch.IsEnabled())
303+
{
304+
MatrixOS::MIDI::Send(MidiPacket::ControlChange(config->untimes[1].channel, 123, 0), MIDI_PORT_ALL); // All notes off
305+
}
296306
}
297307

298308
void Note::ScaleSelector() {

Applications/Note/NotePad.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ NotePad::NotePad(Dimension dimension, NotePadRuntime* rt) {
3939
}
4040

4141
NotePad::~NotePad() {
42-
MatrixOS::MIDI::Send(MidiPacket::ControlChange(rt->config->channel, 123, 0), MIDI_PORT_ALL); // All notes off
4342
activeKeys.clear();
4443
}
4544

0 commit comments

Comments
 (0)