public TupleGroup(ChordTuple tuple) { Type = tuple.Type; Tuples = new List <ChordTuple>() { tuple }; }
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; }
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; }
public bool tryAddTuple(ChordTuple tuple) { if (tuple.HasTuple == true && tuple.Type == Type) { Tuples.Add(tuple); return(true); } else { return(false); } }
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; } }
public RestChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del) : base(c, b, t, bounds, v_info, del) { }