コード例 #1
0
 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]);
     }
 }
コード例 #2
0
ファイル: RestRenderer.cs プロジェクト: winjii/noaPippi
 public RestRenderer(Rest rest, StaffNotation parent)
 {
     this.Rest   = rest;
     this.parent = parent;
 }
コード例 #3
0
ファイル: MeasurableElement.cs プロジェクト: winjii/noaPippi
 abstract public MeasurableElementRenderer CreateRenderer(StaffNotation parent, Game game);
コード例 #4
0
 public override MeasurableElementRenderer CreateRenderer(StaffNotation parent, Game game)
 => new RestRenderer(this, parent);
コード例 #5
0
 public NoteRenderer(Note note, StaffNotation parent)
 {
     this.Note   = note;
     this.parent = parent;
 }