public MusicScore(Game game, RelativeViewport viewport) : base(game, viewport) { measuresG = new List <List <MeasurableElement> >(); measuresF = new List <List <MeasurableElement> >(); viewport.IsHorizontal = false; staffNotationG = new StaffNotation[4]; staffNotationF = new StaffNotation[4]; for (int i = 0; i < 4; i++) { RelativeViewport vG = viewport.AddFormedChild(0.25, true, false); RelativeViewport vF = viewport.AddFormedChild(0.25, true, false); staffNotationG[i] = new StaffNotation(Clef.ClefType.G, game, vG); staffNotationF[i] = new StaffNotation(Clef.ClefType.F, game, vF); game.Components.Add(staffNotationG[i]); game.Components.Add(staffNotationF[i]); } }
public RestRenderer(Rest rest, StaffNotation parent) { this.Rest = rest; this.parent = parent; }
abstract public MeasurableElementRenderer CreateRenderer(StaffNotation parent, Game game);
public override MeasurableElementRenderer CreateRenderer(StaffNotation parent, Game game) => new RestRenderer(this, parent);
public NoteRenderer(Note note, StaffNotation parent) { this.Note = note; this.parent = parent; }