implement midi panic (#1036)

* implement midi panic

* do it the right way

* only send all notes off for now

* remove cc names at TAMidiMessageTypes

* Update engine.cpp
This commit is contained in:
LovelyA72 2023-04-30 18:22:35 -04:00 committed by GitHub
parent 896941e4a8
commit 39cb12ccf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2423,6 +2423,13 @@ void DivEngine::stepOne(int row) {
void DivEngine::stop() { void DivEngine::stop() {
BUSY_BEGIN; BUSY_BEGIN;
freelance=false; freelance=false;
if (!playing) {
//Send midi panic
if (output) if (output->midiOut!=NULL) {
output->midiOut->send(TAMidiMessage(TA_MIDI_CONTROL,0x7B,0));
logV("Midi panic sent");
}
}
playing=false; playing=false;
extValuePresent=false; extValuePresent=false;
endOfSong=false; // what? endOfSong=false; // what?