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(); }
public virtual void ScaleToWidth(float beatWidth) { foreach (var tie in Ties) { tie.DoLayout(); } OnNotes.UpdateBeamingHelper(); Width = beatWidth; }
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(); }
public virtual void ScaleToWidth(float beatWidth) { OnNotes.UpdateBeamingHelper(); Width = beatWidth; }