protected void HandleSongEvent(SongEvent songEvent) { if (songEvent.Note != null) { PlayNote(songEvent.VoiceNumber, songEvent.Volume, songEvent.Note); OnSongEventPlayed(songEvent); } else { PlayRest(songEvent.VoiceNumber); } }
protected void OnSongEventPlayed(SongEvent songEvent) { SongEventPlayed? .Invoke(this, new SongEventEventArgs { SongEvent = songEvent }); }