Exemplo n.º 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]);
     }
 }