classNote
Source: waax.
new Note(pitch, velocity, start, duration)
Note abstraction. Instantiated by WX.Note.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
pitch |
Number |
|
MIDI pitch. |
velocity |
Number |
|
MIDI velocity. |
start |
Number |
|
Start time in tick. |
duration |
Number |
|
Note durtion in tick. |
Methods
staticchangeDuration(delta)
Changes note duration by delta.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
delta |
Number |
|
Duration. |
staticgetEnd() → Number
Returns the note end time in tick.
- Returns
-
Number
staticsetNote(note)
Sets note properties from a note.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
note |
|
statictoString() → String
Returns current properties in a string.
- Returns
-
String
statictranslatePitch(delta)
Moves note pitch by delta.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
delta |
Number |
|
Pitch displacement. |
statictranslateStart(delta)
Moves note pitch by delta.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
delta |
Number |
|
Pitch displacement. |
staticvalueOf() → Number
Returns start time for numeric operation.
- Returns
-
Number