Module

alphaTabActions

AlphaTab actions. For initialization and destruction of AlphaTab, see initialization and destruction.
Author:

View Source vendors/AlphaTab/actions.js, line 18

Methods

# static changePart(partName)

Change which track Alpha Tab is rendering based on the given part name
Parameters:
Name Type Description
partName string The part name to change to. Part names are expected to be "tx" where x is the track index

View Source vendors/AlphaTab/actions.js, line 86

# static changeToExercise(measureStart, measureEnd)

Cause AlphaTab to generate an exercise of the current part from measureStart to measureEnd
Parameters:
Name Type Description
measureStart number The start measure number. Note: It is assumed that this has already been error checked
measureEnd number The end measure number. Note: It is assumed that this has already been error checked

View Source vendors/AlphaTab/actions.js, line 157

# static changeToMyPart()

Renders isolated user part from sheet music through AlphaTab with Real Time Feedback from P5

View Source vendors/AlphaTab/actions.js, line 135

# static changeToPerformance()

Renders performance overview using AlphaTab and Performance Highlighting from P5

View Source vendors/AlphaTab/actions.js, line 146

# static changeToSheetMusic()

Renders sheet music through AlphaTab with Real Time Feedback from P5

View Source vendors/AlphaTab/actions.js, line 126

# static getMyPart() → {string}

Gets the member's part for the sheet music (e.g. Soprano)

View Source vendors/AlphaTab/actions.js, line 495

The member's part
string

# static getPartList() → {Array.<string>}

Gets all parts of the sheet music (e.g. alto, soprano, etc.)

View Source vendors/AlphaTab/actions.js, line 504

An array of parts
Array.<string>

# static getPlaybackRange() → {Array.<number>}

Converts the playback range if defined in AlphaTab to the measure numbers that start and end that range

View Source vendors/AlphaTab/actions.js, line 196

Either an array with the start and end measure numbers or null if there is no playback range
Array.<number>

# static loadJustMyPart()

Loads just the user's part for this sheet music logging it as an exercise and isolates their part for playback

View Source vendors/AlphaTab/actions.js, line 270

# static loadTex(partName)

Loads AlphaTex for the current piece of sheet music rendering the user's part if initialized otherwise the provided part
Parameters:
Name Type Description
partName string Name of the part to render during load

View Source vendors/AlphaTab/actions.js, line 382

# static startPlayingMusic()

Starts playing the sheet music and getting pitches from the microphone

View Source vendors/AlphaTab/actions.js, line 31

# static stopPlayingMusic()

Stops playing the music. Resets the noteStreamIndex and the cumulativeTime.

View Source vendors/AlphaTab/actions.js, line 69

# static timeToMeasureNumber(currentPosition, currentMeasure, measureToLength)

Converts a time position in seconds to what measure that it occurs in
Parameters:
Name Type Description
currentPosition number The current time position that we are on
currentMeasure number The current measure number that we are on
measureToLength Array.<number> Array holding the length of each measure in seconds

View Source vendors/AlphaTab/actions.js, line 175

# async inner loadExercise(measureStart, measureEnd)

Loads an exercise based on user provided measure numbers
Parameters:
Name Type Description
measureStart number The start measure number. Note: It is assumed that this has already been error checked
measureEnd number The end measure number. Note: It is assumed that this has already been error checked

View Source vendors/AlphaTab/actions.js, line 325