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);
        }
Exemple #2
0
        public void setTupleLength(TupleLength length)
        {
            HasTuple          = true;
            Left              = false;
            Right             = false;
            DrawNumber        = true;
            NumberRightOffset = false;

            Type       = length.TupleType;
            NoteLength = length.NoteType;
        }
Exemple #3
0
 public static Length createInstance(NoteLength length, TupletType type)
 {
     if (type != TupletType.None)
     {
         return(TupleLength.createInstance(length, type));
     }
     else
     {
         return(createInstance(length));
     }
 }
Exemple #4
0
 public bool validateTuple(TupleLength length)
 {
     return(length.TupleType != TupletType.None && length.NoteType != NoteLength.None);
 }