Пример #1
0
        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));
            }
        }
Пример #2
0
 protected override float GetEndY(BarRendererBase noteRenderer, BeamDirection direction)
 {
     return(noteRenderer.GetNoteY(_endNote) - Offset);
 }
Пример #3
0
 protected override float GetStartY(BarRendererBase noteRenderer, BeamDirection direction)
 {
     return(noteRenderer.GetNoteY(_startNote));
 }