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