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

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