private void sendAccentEvent(object sender, EventArgs e) { AccentEventArgs a = new AccentEventArgs(); a.AccentsArray = _accents; if (AccentSelected != null) { AccentSelected(this, a); } }
private void AccentSelected(object sender, AccentEventArgs a) { _plugin.GetInstance <MidiProcessor>().AccentsArray = a.AccentsArray; _plugin.GetInstance <MidiProcessor>().CountRythm(); }