Exemple #1
0
 /// <summary>
 /// Reads the message from a MIDI stream.
 /// </summary>
 /// <param name="data">The MIDI stream containing the message data.</param>
 public virtual void ReadData(MidiBinaryReader data)
 {
     Command = (MidiCommand)data.ReadByte();
 }
Exemple #2
0
 public MidiMessage(MidiCommand command, SevenBitNumber note, SevenBitNumber velocity)
 {
     Command  = command;
     Note     = note;
     Velocity = velocity;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MidiMessage"/> class.
 /// </summary>
 /// <param name="command">The command.</param>
 protected MidiMessage(MidiCommand command)
 {
     Command = command;
 }