Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        public int GetSysex(MidiSysex id)
        {
            MidiDriver.Refresh();

            int index = (int)id;

            if (index >= _sysexMem.Length)
            {
                return(0);
            }

            return(_sysexMem[index]);
        }