private void sendRythmEvent(object sender, EventArgs e) { RythmEventArgs r = new RythmEventArgs(); r.NoteLengthsArray = _noteLengths; if (RythmSelected != null) { RythmSelected(this, r); } }
private void RythmSelected(object sender, RythmEventArgs r) { _plugin.GetInstance <MidiProcessor>().NoteLengthsArray = r.NoteLengthsArray; _plugin.GetInstance <MidiProcessor>().CountRythm(); }