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); } }
public override ChordOff CloneChordOff() { ChordOff chordOff = new ChordOff(this.BasicMidiChord); foreach (NoteOff noteOff in this.Notes) { chordOff.AddNote(noteOff.CloneNoteOff()); } return(chordOff); }
public override ChordOff CloneChordOff() { ChordOff chordOff = new ChordOff(this.BasicMidiChord); foreach(NoteOn noteOn in this.Notes) chordOff.AddNote(noteOn.CloneNoteOff()); return chordOff; }
public void AddNote(int channel, int pitch, int velocity) { ChordOn.AddNote(new NoteOn(channel, pitch, velocity)); ChordOff.AddNote(new NoteOff(channel, pitch, 64)); }