Example #1
0
 /// <summary>
 /// Create a new MIDI In Message EventArgs
 /// </summary>
 /// <param name="message"></param>
 /// <param name="timestamp"></param>
 // Token: 0x0600023C RID: 572 RVA: 0x000074B8 File Offset: 0x000056B8
 public MidiInMessageEventArgs(int message, int timestamp)
 {
     this.RawMessage = message;
     this.Timestamp  = timestamp;
     try
     {
         this.MidiEvent = MidiEvent.FromRawMessage(message);
     }
     catch (Exception)
     {
     }
 }
Example #2
0
 /// <summary>
 /// Create a new MIDI In Message EventArgs
 /// </summary>
 /// <param name="message"></param>
 /// <param name="timestamp"></param>
 public MidiInMessageEventArgs(int message, int timestamp)
 {
     this.message   = message;
     this.timestamp = timestamp;
     try
     {
         this.midiEvent = MidiEvent.FromRawMessage(message);
     }
     catch (Exception)
     {
         // don't worry too much - might be an invalid message
     }
 }