From 70219c19145677368ef625dcac68e4204c70d1d8 Mon Sep 17 00:00:00 2001
From: probonopd <probonopd@users.noreply.github.com>
Date: Mon, 3 Oct 2022 20:19:57 +0200
Subject: [PATCH] IgnoreAllNotesOff

[ci skip]
---
 src/mididevice.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mididevice.cpp b/src/mididevice.cpp
index 7b3683f..d92fdfb 100644
--- a/src/mididevice.cpp
+++ b/src/mididevice.cpp
@@ -303,7 +303,10 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
 							break;
 		
 						case MIDI_CC_ALL_NOTES_OFF:
-							m_pSynthesizer->notesOff (pMessage[2], nTG);
+							if (!m_pConfig->GetIgnoreAllNotesOff ())
+							{
+								m_pSynthesizer->notesOff (pMessage[2], nTG);
+							}
 							break;
 						}
 						break;