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