예제 #1
0
 public TupleGroup(ChordTuple tuple)
 {
     Type   = tuple.Type;
     Tuples = new List <ChordTuple>()
     {
         tuple
     };
 }
예제 #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;
        }
예제 #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;
        }
예제 #4
0
 public bool tryAddTuple(ChordTuple tuple)
 {
     if (tuple.HasTuple == true && tuple.Type == Type)
     {
         Tuples.Add(tuple);
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #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;
            }
        }
예제 #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)
 {
 }