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 |
Members
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 |
# clear()
Start new performance so clear performance data
# 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 |