void OnSysex(MidiSysex id, int value) { if (id == MidiSysex.ActiveTrack) { activeTrack = value; } else if (id == MidiSysex.ActivePattern) { activePattern = value; } else if (id == MidiSysex.ActiveProject) { activeProject = value; } else if (id == MidiSysex.MasterVolume) { masterVolume = value; } else if (id == MidiSysex.BatteryLevel) { batteryLevel = value; } else if (id == MidiSysex.Tempo) { tempo = value; } }
public int GetSysex(MidiSysex id) { MidiDriver.Refresh(); int index = (int)id; if (index >= _sysexMem.Length) { return(0); } return(_sysexMem[index]); }