Ejemplo n.º 1
0
 IEnumerable <LayoutObject> CreateStemAndFlagObjects(
     double tickPosition,
     BeatGroup beatGroup)
 {
     var(stem, flag) = CreateStemAndFlagForIndividualBeat(tickPosition, beatGroup);
     if (stem != null)
     {
         yield return(stem);
     }
     if (flag != null)
     {
         yield return(flag);
     }
 }
Ejemplo n.º 2
0
        public BeatGroupLayout ComputeBeatGroupLayout(BeatGroup group)
        {
            var offsetNotes = ComputeOffsetNotes(group.ScoreNotes).ToReadOnlyList();

            return(new BeatGroupLayout(offsetNotes));
        }
Ejemplo n.º 3
0
 IEnumerable <SymbolObject> CreateNoteSymbols(BeatGroup beatGroup, double beatOffset)
 => beatGroup.ScoreNotes.Select(
     note => CreateNoteSymbol(note.StaffPosition, note.Duration, beatOffset));