aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidimapperrtmidi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qmpmidimapperrtmidi.cpp')
-rw-r--r--core/qmpmidimapperrtmidi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/qmpmidimapperrtmidi.cpp b/core/qmpmidimapperrtmidi.cpp
index 10f830e..7d6cdac 100644
--- a/core/qmpmidimapperrtmidi.cpp
+++ b/core/qmpmidimapperrtmidi.cpp
@@ -86,3 +86,9 @@ void qmpMidiMapperRtMidi::sysEx(int iid,int length,const char *data)
std::vector<unsigned char>message(data,data+length);
ports[iid]->sendMessage(&message);
}
+void qmpMidiMapperRtMidi::panic(int iid,int ch)
+{
+ //maybe all notes off is more close to panic?
+ ctrlChange(iid,ch,120,0);
+ //ctrlChange(iid,ch,123,0);
+}