protected AbstractTime(string beatTime, string beatType, TimeSymbolMusicXML timeSymbol, AbstractStaff staff) { visualHost = new DrawingVisualHost(); this.timeSymbol = timeSymbol; SetTimeAndBeats(beatTime, beatType); this.staff = staff; }
public MeasureClef(ClefSignMusicXML clefSign, int lineOfStaff, int octaveChange, AbstractStaff staff) { _visualsHost = new DrawingVisualHost(); _lineOfStaff = lineOfStaff; _clefSign = clefSign; MusicSymbols.TryGetClefSymbol(clefSign, octaveChange, out _symbol); this.staff = staff; }
public MeasureTime(string beatTime, string beatType, AbstractStaff staff) : base(beatTime, beatType, staff) { if (beatTime.Contains("+")) { throw new ArgumentException("Compound Time not supported by this class! Use MeasureCompoundTime class."); } GenerateBeatTimeSymbol(); GenerateBeatTypeSymbol(); }
public MeasureClef(ClefMusicXML clef, AbstractStaff staff) { var octaveChange = 0; if (!String.IsNullOrEmpty(clef.ClefOctaveChange)) { octaveChange = int.Parse(clef.ClefOctaveChange); } if (MusicSymbols.TryGetClefSymbol(clef.Sign, octaveChange, out string symbol)) { _clefSign = clef.Sign; _symbol = symbol; } else { throw new ArgumentException("An error occured while parsing clef symol"); } if (int.TryParse(clef.Line, out int line)) { _lineOfStaff = line; } this.staff = staff; }
public MeasureRest(double width, AbstractStaff staff) : base(staff) { Width = width; }
protected AbstractContent(AbstractStaff staff) { visualHost = new Canvas(); this.staff = staff; }
public void SetStaff(AbstractStaff staff) { this.staff = staff; }