Class

NoteList

NoteList(element)

Keeps a list of midi values to serve as a sample of the MAX_SIZE last midi values heard

Constructor

# new NoteList(element)

Creates a NoteList defaulting the lower pitch bound to 21 = A0 and the upper pitch bound to 127 = G9
Parameters:
Name Type Description
element Number Initial midi value to be stored in the list of values
Author:

View Source vendors/AlphaTab/NoteList.js, line 21

Members

# average

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 45

# elements

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 30

# lowerPitchBound

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 50

number

# MAX_SIZE

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 15

# performanceData

TODO: Description

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

# pointer

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 35

# upperPitchBound

TODO: Description

View Source vendors/AlphaTab/NoteList.js, line 55

Methods

# addNote(element, time)

Adds a midi value to the list of values overwriting the oldest value if full
Parameters:
Name Type Description
element Number Midi value to be stored in the list of values
time Number Time when the note was started

View Source vendors/AlphaTab/NoteList.js, line 74

# clear()

Start new performance so clear performance data

View Source vendors/AlphaTab/NoteList.js, line 61

# updateBounds(lowerBound, upperBound)

Updates the lower and upper bounds on the average in terms of midi values
Parameters:
Name Type Description
lowerBound Number Averages less than this midi value will be ignored
upperBound Number Averages greater than this midi value will be ignored

View Source vendors/AlphaTab/NoteList.js, line 105