protected override float GetStartY(BarRendererBase noteRenderer, BeamDirection direction) { if (StartBeat.IsRest) { // below all lines return(((ScoreBarRenderer)noteRenderer).GetScoreY(9)); } switch (direction) { case BeamDirection.Up: // below lowest note return(noteRenderer.GetNoteY(StartBeat.MinNote)); default: return(noteRenderer.GetNoteY(StartBeat.MaxNote)); } }
protected override float GetEndY(BarRendererBase noteRenderer, BeamDirection direction) { return(noteRenderer.GetNoteY(_endNote) - Offset); }
protected override float GetStartY(BarRendererBase noteRenderer, BeamDirection direction) { return(noteRenderer.GetNoteY(_startNote)); }