Exemplo n.º 1
0
 public TupleGroup(ChordTuple tuple)
 {
     Type   = tuple.Type;
     Tuples = new List <ChordTuple>()
     {
         tuple
     };
 }
Exemplo n.º 2
0
        public ChordBounds(Chord c, VisualInfo v_info, IDelegate del)
        {
            ChordBar   = new ChordBar(c.Length.NoteType);
            ChordTuple = new ChordTuple(c.Length);

            BoundsDelegate = del;
            chord          = c;
            info           = v_info;
        }
Exemplo n.º 3
0
        public ChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info  = v_info;
            chord = c;
            bar   = b;
            tuple = t;
        }
Exemplo n.º 4
0
 public bool tryAddTuple(ChordTuple tuple)
 {
     if (tuple.HasTuple == true && tuple.Type == Type)
     {
         Tuples.Add(tuple);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 5
0
        public void setFilledTuple(List <ChordTuple> tuples)
        {
            foreach (ChordTuple tuple in tuples)
            {
                tuple.Left       = true;
                tuple.Right      = true;
                tuple.DrawNumber = false;
            }
            tuples.First().Left = false;
            tuples.Last().Right = false;

            ChordTuple center = tuples.ElementAt((tuples.Count - 1) / 2);

            center.DrawNumber = true;
            if (tuples.Count % 2 == 0)
            {
                center.NumberRightOffset = true;
            }
        }
Exemplo n.º 6
0
 public RestChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del) : base(c, b, t, bounds, v_info, del)
 {
 }