Adds any event type to the track. Events without a specific startTick property are assumed to be added in order of how they should output. Events with a specific startTick property are set aside for now will be merged in during build process.
TODO: Don't put startTick events in their own array. Just lump everything together and sort it out during buildData();
Event object or array of Event objects.
Optional
mapFunction: ((i, event) => object)Callback which can be used to apply specific properties to all events.
Adds a controller change event
Control number.
Control value.
Optional
channel: numberChannel to send controller change event on (1-based).
Optional
delta: numberTrack tick offset for cc event.
Sets time signature.
Top number of the time signature.
Bottom number of the time signature.
Defaults to 24.
Defaults to 8.
Generated using TypeDoc
Holds all data for a track.
Param
{type: number, data: array, size: array, events: array}
Returns