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