Beispiel #1
0
 private void PlaceNotes(IEnumerable <Symbol> notes)
 {
     _staffView.Clear();
     foreach (var symbol in notes)
     {
         symbol.Note.Match(
             note =>
         {
             var posY = MusicUtils.GetNotePosition(note.Name, note.Octave);
             _staffView.PlaceSymbol(posY, symbol.Duration, _symbolsFactory.GetSymbol(symbol));
         },
             () => Debug.LogError("Not a note!"));
     }
 }