Esempio n. 1
0
        private void comboBoxOctaves_SelectionChangeCommitted(object sender, EventArgs e)
        {
            int             selectedOctave = (int)comboBoxOctaves.SelectedValue;
            OctaveEventArgs o = new OctaveEventArgs();

            o.Octave = selectedOctave;

            if (OctaveSelected != null)
            {
                OctaveSelected(this, o);
            }
        }
Esempio n. 2
0
 private void OctaveSelected(object sender, OctaveEventArgs o)
 {
     _plugin.GetInstance <MidiProcessor>().Octave = o.Octave;
     _plugin.GetInstance <MidiProcessor>().AddOctaves();
     _plugin.GetInstance <MidiProcessor>().OrderNoteOnEventsWithOctaves();
 }