public static void PressKey(Key key) { if (defaultKeyboardFrequencies.ContainsKey(key)) { float frequency = defaultKeyboardFrequencies[key]; NotePressed.Invoke(null, frequency); } }
public void OnNotePressed(Note note) { NotePressed?.Invoke(this, new NoteEventArgs { Note = note }); }