Ejemplo n.º 1
0
 public virtual void ApplyLayoutingInfo(BarLayoutingInfo info)
 {
     PreNotes.Width = info.GetPreBeatSize(Beat);
     OnNotes.Width  = info.GetOnBeatSize(Beat);
     OnNotes.X      = PreNotes.X + PreNotes.Width;
     OnTimeX        = OnNotes.X + OnNotes.Width / 2;
     OnNotes.UpdateBeamingHelper();
 }
Ejemplo n.º 2
0
 public virtual void ScaleToWidth(float beatWidth)
 {
     foreach (var tie in Ties)
     {
         tie.DoLayout();
     }
     OnNotes.UpdateBeamingHelper();
     Width = beatWidth;
 }
Ejemplo n.º 3
0
        public virtual void ApplyLayoutingInfo(BarLayoutingInfo info)
        {
            var offset = info.GetBeatCenterX(Beat) - OnNotes.CenterX;

            PreNotes.X     = offset;
            PreNotes.Width = info.GetPreBeatSize(Beat);
            OnNotes.Width  = info.GetOnBeatSize(Beat);
            OnNotes.X      = PreNotes.X + PreNotes.Width;
            OnNotes.UpdateBeamingHelper();
        }
Ejemplo n.º 4
0
 public virtual void ScaleToWidth(float beatWidth)
 {
     OnNotes.UpdateBeamingHelper();
     Width = beatWidth;
 }