public List <Length> genTupletLengths(CommandSelections selections) { var lengths = new List <Length>(); foreach (Chord chord in Chords) { lengths.Add(TupleLength.createInstance(chord.Length.NoteType, Type)); } return(lengths); }
public void setTupleLength(TupleLength length) { HasTuple = true; Left = false; Right = false; DrawNumber = true; NumberRightOffset = false; Type = length.TupleType; NoteLength = length.NoteType; }
public static Length createInstance(NoteLength length, TupletType type) { if (type != TupletType.None) { return(TupleLength.createInstance(length, type)); } else { return(createInstance(length)); } }
public bool validateTuple(TupleLength length) { return(length.TupleType != TupletType.None && length.NoteType != NoteLength.None); }