Example #1
0
 void MIDI_NoteOn(UtilityMIDI.MIDIDataReceivedEventArgs e)
 {
     if (Mode == mDMode.MIDI)
     {
         if (chkEnableMonitor.Checked) UpdateMIDI(e.Cmd, e.Data1, e.Data2);
         if (TabForm.Singleton != null) tabForm.MIDI(e.Data1, e.Data2);
     }
 }
Example #2
0
 void MIDI_SysEx(UtilityMIDI.MIDIDataReceivedEventArgs e)
 {
     if (e.Cmd == 0x60) //License
     {
         byte[] lic = new byte[] { (byte)e.Data1, (byte)e.Data2 };
         if (aboutForm.IsValid())
             UtilityMIDI.MIDI_SysEx(0x60, (byte)e.Data1, (byte)e.Data2, UtilityCryptography.GetPearsonHash(lic));
         else
             UtilityMIDI.MIDI_SysEx(0x60, (byte)e.Data1, (byte)e.Data2, 0x00);
     }
     if (Mode == mDMode.Off)
     {
         OffMode(e.Cmd, e.Data1, e.Data2, e.Data3);
     }
     else if (Mode == mDMode.Tool)
     {
         LogMode(e.Cmd, e.Data1, e.Data2, e.Data3, e.Log);
     }
     else if (Mode == mDMode.StandBy)
     {
         StandbyMode(e.Cmd, e.Data1, e.Data2, e.Data3);
     }
 }
Example #3
0
 void MIDI_CC(UtilityMIDI.MIDIDataReceivedEventArgs e)
 {
     if (Mode == mDMode.MIDI)
     {
         if (chkEnableMonitor.Checked) UpdateMIDI(e.Cmd, e.Data1, e.Data2);
     }
 }