oh yes more MIDI work

This commit is contained in:
tildearrow 2022-03-28 15:24:09 -05:00
parent d8328e91a7
commit 08910d37b2
4 changed files with 33 additions and 16 deletions

View file

@ -244,6 +244,8 @@ class DivEngine {
size_t totalProcessed;
std::function<bool(const TAMidiMessage&)> midiCallback=[](const TAMidiMessage&) -> bool {return false;};
DivSystem systemFromFile(unsigned char val);
unsigned char systemToFile(DivSystem val);
int dispatchCmd(DivCommand c);
@ -635,6 +637,10 @@ class DivEngine {
// switch master
bool switchMaster();
// set MIDI input callback
// if the specified function returns true, note feedback will be inhibited.
void setMidiCallback(std::function<bool(const TAMidiMessage&)> what);
// perform secure/sync operation
void synchronized(const std::function<void()>& what);