public InputNoteDef(byte notatedMidiPitch, NoteOn noteOn, NoteOff noteOff, TrkOptions trkOptions) { Debug.Assert(notatedMidiPitch >= 0 && notatedMidiPitch <= 127); // If trkOptions is null, the higher level trkOptions are used. NotatedMidiPitch = notatedMidiPitch; NoteOn = noteOn; NoteOff = noteOff; TrkOptions = trkOptions; }
/// <summary> /// This constructs an InputNoteDef that, when the noteOff arrives, /// turns off all the trks that were turned on by the noteOn. /// </summary> public InputNoteDef(byte notatedMidiPitch, NoteOn noteOn, TrkOptions trkOptions) : this(notatedMidiPitch, noteOn, null, trkOptions) { //public NoteOff(NoteOn noteOn, Seq seq, TrkOptions trkOptions) NoteOff = new NoteOff(noteOn, null, null); }