예제 #1
0
        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;
        }
예제 #2
0
 /// <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);
 }