Module

alphaTabListeners

Functions called when an AlphaTab listener is triggered
Author:

View Source vendors/AlphaTab/listeners.js, line 13

Methods

# static alphaTabPlayerFinished()

Resets the time back to the beginning of the song and our tracker points at the beginning of the piece again

View Source vendors/AlphaTab/listeners.js, line 68

# static alphaTabPlayerStateChanged()

Handles changes to AlphaTab's player state

View Source vendors/AlphaTab/listeners.js, line 42

# static alphaTabPostRenderFinished()

Run when AlphaTab is rendered on the screen

View Source vendors/AlphaTab/listeners.js, line 25

# inner getSheetMusicLedgerHeights(topLine, nextLine) → {module:alphaTabListeners~LedgerHeightsPackage}

Gets the top line height and distance between ledger lines based on the sheet music
Parameters:
Name Type Description
topLine object
nextLine object

View Source vendors/AlphaTab/listeners.js, line 210

An object containing the top line height and distance between lines

# inner initializeFeedbackDrawer(topLine, nextLine)

Creates an instance of the of the the drawer
Parameters:
Name Type Description
topLine object The top line DOM element
nextLine object The next line DOM element

View Source vendors/AlphaTab/listeners.js, line 166

# async inner onFirstRender()

On the first render, isFirstRender will be false and this will signal an initial setup of the variables

View Source vendors/AlphaTab/listeners.js, line 121

# inner onSubsequentRender()

During page turns, we only need to update a subset of variables

View Source vendors/AlphaTab/listeners.js, line 77

# inner resetSheetMusic()

Clears the p5 drawing for real-time feedback. Resets the sheet music back to the beginning.

View Source vendors/AlphaTab/listeners.js, line 225

# inner stopPlayingMusic()

Stops playing the music. Shuts off pitch detection (this does not turn the microphone off). Resets the sheet music (this is due to pagination).

View Source vendors/AlphaTab/listeners.js, line 186

Type Definitions

# LedgerHeightsPackage

Properties:
Name Type Description
topLineHeight number The y height of the top ledger line
distanceBetweenLines number The y distance between ledger lines

View Source vendors/AlphaTab/listeners.js, line 197