C# Class AlphaTab.Rendering.Utils.BeamingHelper

This public class helps drawing beams and bars for notes.
Show file Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
BeamingHelper ( AlphaTab.Model.Track track ) : System
CalculateBeamY ( float stemSize, float xCorrection, float xPosition, float scale, float>.Func yPosition ) : float
CheckBeat ( Beat beat ) : bool
Finish ( ) : void
GetBeatLineX ( Beat beat ) : float
HasBeatLineX ( Beat beat ) : bool
RegisterBeatLineX ( Beat beat, float up, float down ) : void

Private Methods

Method Description
CalculateDirection ( ) : BeamDirection
CanJoin ( Beat b1, Beat b2 ) : bool
CanJoinDuration ( System.Duration d ) : bool
CheckNote ( Note note ) : void
GetValue ( Note n ) : int
Invert ( BeamDirection direction ) : BeamDirection

Method Details

BeamingHelper() public method

public BeamingHelper ( AlphaTab.Model.Track track ) : System
track AlphaTab.Model.Track
return System

CalculateBeamY() public method

public CalculateBeamY ( float stemSize, float xCorrection, float xPosition, float scale, float>.Func yPosition ) : float
stemSize float
xCorrection float
xPosition float
scale float
yPosition float>.Func
return float

CheckBeat() public method

public CheckBeat ( Beat beat ) : bool
beat AlphaTab.Model.Beat
return bool

Finish() public method

public Finish ( ) : void
return void

GetBeatLineX() public method

public GetBeatLineX ( Beat beat ) : float
beat AlphaTab.Model.Beat
return float

HasBeatLineX() public method

public HasBeatLineX ( Beat beat ) : bool
beat AlphaTab.Model.Beat
return bool

RegisterBeatLineX() public method

public RegisterBeatLineX ( Beat beat, float up, float down ) : void
beat AlphaTab.Model.Beat
up float
down float
return void