Esempio n. 1
0
 private void SetChordOff(int channel, List <byte> midiPitches)
 {
     for (int i = 0; i < midiPitches.Count; i++)
     {
         NoteOff noteOff = new NoteOff(channel, midiPitches[i], 64);
         ChordOff.AddNote(noteOff);
     }
 }
Esempio n. 2
0
        public override ChordOff CloneChordOff()
        {
            ChordOff chordOff = new ChordOff(this.BasicMidiChord);

            foreach (NoteOff noteOff in this.Notes)
            {
                chordOff.AddNote(noteOff.CloneNoteOff());
            }

            return(chordOff);
        }
Esempio n. 3
0
        public override ChordOff CloneChordOff()
        {
            ChordOff chordOff = new ChordOff(this.BasicMidiChord);

            foreach(NoteOn noteOn in this.Notes)
                chordOff.AddNote(noteOn.CloneNoteOff());

            return chordOff;
        }
Esempio n. 4
0
 public void AddNote(int channel, int pitch, int velocity)
 {
     ChordOn.AddNote(new NoteOn(channel, pitch, velocity));
     ChordOff.AddNote(new NoteOff(channel, pitch, 64));
 }