internal MidiPitchBendMessage(Core.MidiIO.Data.MidiEvent ev, MidiMessageType type) : base(ev, type) { int p = ((ev.AllData[2] & 0x7F) << 7) | (ev.AllData[1] & 0x7F); Pitch = p - 8192; }
internal MidiControlChangeMessage(Core.MidiIO.Data.MidiEvent ev, MidiMessageType type) : base(ev, type) { ControlId = ev.AllData[1]; ControlValue = ev.AllData[2]; }
internal MidiProgramChangeMessage(Core.MidiIO.Data.MidiEvent ev, MidiMessageType type) : base(ev, type) { _instrument = (MidiInstrument)(ev.AllData[1] & 0x7F); }
internal MidiNoteMessage(Core.MidiIO.Data.MidiEvent ev, MidiMessageType type) : base(ev, type) { _key = ev.AllData[1] & 0x7F; _velocity = ev.AllData[2] & 0x7F; }