C# Class AlphaTab.Rendering.Utils.BeamingHelper

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BeamingHelper ( AlphaTab.Model.Track track ) : System
track AlphaTab.Model.Track
Résultat System

CalculateBeamY() public méthode

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
Résultat float

CheckBeat() public méthode

public CheckBeat ( Beat beat ) : bool
beat AlphaTab.Model.Beat
Résultat bool

Finish() public méthode

public Finish ( ) : void
Résultat void

GetBeatLineX() public méthode

public GetBeatLineX ( Beat beat ) : float
beat AlphaTab.Model.Beat
Résultat float

HasBeatLineX() public méthode

public HasBeatLineX ( Beat beat ) : bool
beat AlphaTab.Model.Beat
Résultat bool

RegisterBeatLineX() public méthode

public RegisterBeatLineX ( Beat beat, float up, float down ) : void
beat AlphaTab.Model.Beat
up float
down float
Résultat void