add preliminary TX81Z SysEx response
- load voice data
This commit is contained in:
parent
38b4d1d39e
commit
2c643aca4c
10 changed files with 237 additions and 4 deletions
|
|
@ -2383,6 +2383,22 @@ void DivEngine::setMidiCallback(std::function<int(const TAMidiMessage&)> what) {
|
|||
midiCallback=what;
|
||||
}
|
||||
|
||||
bool DivEngine::sendMidiMessage(TAMidiMessage& msg) {
|
||||
if (output==NULL) {
|
||||
logW("output is NULL!");
|
||||
return false;
|
||||
}
|
||||
if (output->midiOut==NULL) {
|
||||
logW("MIDI output is NULL!");
|
||||
return false;
|
||||
}
|
||||
BUSY_BEGIN;
|
||||
logD("sending MIDI message...");
|
||||
bool ret=(output->midiOut->send(msg));
|
||||
BUSY_END;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void DivEngine::synchronized(const std::function<void()>& what) {
|
||||
BUSY_BEGIN;
|
||||
what();
|
||||
|
|
|
|||
|
|
@ -826,6 +826,9 @@ class DivEngine {
|
|||
// if the specified function returns -2, note feedback will be inhibited.
|
||||
void setMidiCallback(std::function<int(const TAMidiMessage&)> what);
|
||||
|
||||
// send MIDI message
|
||||
bool sendMidiMessage(TAMidiMessage& msg);
|
||||
|
||||
// perform secure/sync operation
|
||||
void synchronized(const std::function<void()>& what);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue