Methods
endOfTrack()
Returns true if pointer has reached the end of the track.
Parameters:
Type | Description |
---|---|
boolean
|
getCurrentByte() → {number}
Gets byte located at pointer position.
Returns:
- Type:
-
number
getDelta() → {number}
Get delta value at current pointer position.
Returns:
- Type:
-
number
getDeltaByteCount() → {number}
Gets count of delta bytes and current pointer position.
Returns:
- Type:
-
number
getStringData(eventStartIndex) → {string}
Get string data from event.
Parameters:
Name | Type | Description |
---|---|---|
eventStartIndex |
number
|
Returns:
- Type:
-
string
handleEvent(currentTick, dryRun)
Handles event within a given track starting at specified index
Parameters:
Name | Type | Description |
---|---|---|
currentTick |
number
|
|
dryRun |
boolean
|
If true events will be parsed and returned regardless of time. |
parseEvent() → {object}
Parses event into JSON and advances pointer for the track
Returns:
- Type:
-
object