Exemplo n.º 1
0
 private void SetChordOn(int channel, List <byte> midiPitches, List <byte> midiVelocities)
 {
     for (int i = 0; i < midiPitches.Count; i++)
     {
         NoteOn noteOn = new NoteOn(channel, midiPitches[i], midiVelocities[i]);
         ChordOn.AddNote(noteOn);
     }
 }
Exemplo n.º 2
0
        public override ChordOn CloneChordOn()
        {
            ChordOn chordOn = new ChordOn(this.BasicMidiChord);

            foreach (NoteOff noteOff in this.Notes)
            {
                chordOn.AddNote(noteOff.CloneNoteOn());
            }

            return(chordOn);
        }
Exemplo n.º 3
0
        public override ChordOn CloneChordOn()
        {
            ChordOn chordOn = new ChordOn(this.BasicMidiChord);

            foreach (NoteOn noteOn in this.Notes)
            {
                chordOn.AddNote(noteOn.CloneNoteOn());
            }

            chordOn.GetIdleOrnamentBW = GetIdleOrnamentBW;

            return(chordOn);
        }
Exemplo n.º 4
0
        public override ChordOn CloneChordOn()
        {
            ChordOn chordOn = new ChordOn(this.BasicMidiChord);

            foreach(NoteOn noteOn in this.Notes)
                chordOn.AddNote(noteOn.CloneNoteOn());

            chordOn.GetIdleOrnamentBW = GetIdleOrnamentBW;

            return chordOn;
        }
Exemplo n.º 5
0
        public override ChordOn CloneChordOn()
        {
            ChordOn chordOn = new ChordOn(this.BasicMidiChord);

            foreach(NoteOff noteOff in this.Notes)
                chordOn.AddNote(noteOff.CloneNoteOn());

            return chordOn;
        }
Exemplo n.º 6
0
 public void AddNote(int channel, int pitch, int velocity)
 {
     ChordOn.AddNote(new NoteOn(channel, pitch, velocity));
     ChordOff.AddNote(new NoteOff(channel, pitch, 64));
 }