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