Constructor
new ParserMeasures(parsedOutputObj)
Creates a new ParserMeasures
Parameters:
Name | Type | Description |
---|---|---|
parsedOutputObj |
ParsedOutputPackage | The main ParsedOutputPackage |
- Source:
Methods
getDurationFromDurationInSeconds(durationInSeconds, currentTempoFactor, beatEffects) → {number}
Converts the duration in seconds of a Note back to the duration in AlphaTex
Parameters:
Name | Type | Description |
---|---|---|
durationInSeconds |
number | The duration in seconds of the given Note |
currentTempoFactor |
number | The current factor based on the tempo |
beatEffects |
Set | A set of effects that are modifying the Note |
- Source:
Returns:
The duration as would be noted in AlphaTex
- Type
- number
measuresToAlphaTex(measures, trackNumber, staffNumber, isDurationExercise) → {MeasureAlphaTexPackage}
Creates an exercise within the provided measure bounds of the track and staff number specified either a duration exercise or a normal one
Parameters:
Name | Type | Description |
---|---|---|
measures |
Array.<number> | The start and end of the measure bounds. If null, then get all measures |
trackNumber |
number | The number of the Track to be retrieved. |
staffNumber |
number | The number of the Staff to be retrieved |
isDurationExercise |
boolean | If true then this will generate a duration exercise otherwise if false then it will just copy the Measures |
- Source:
Returns:
If successful, provides the lyrics and generated alphaTex. Otherwise, returns null