/// <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(); }
public MidiMessage(MidiCommand command, SevenBitNumber note, SevenBitNumber velocity) { Command = command; Note = note; Velocity = velocity; }
/// <summary> /// Initializes a new instance of the <see cref="MidiMessage"/> class. /// </summary> /// <param name="command">The command.</param> protected MidiMessage(MidiCommand command) { Command = command; }