Class: MIDITrack

MIDITrack(number)

Create a MIDI track.

Constructor

new MIDITrack(number)

Parameters:
Name Type Description
number number The track number.
Author:
  • Lawrence Fyfe
Source:

Methods

clearEvents()

Clear all events from this track.
Source:

getAllEvents() → {Array}

Get all events from this track.
Source:
Returns:
An array of events.
Type
Array

getEventType(type) → {Array}

Get all events of the specified type from this track.
Parameters:
Name Type Description
type string The event type.
Source:
Returns:
An array of events.
Type
Array

setEvents(events)

Set all events in this track to the specified events. This will replace any existing events!
Parameters:
Name Type Description
events Array The event type.
Source:

setNoteEndTime(note, endTime)

Find a note and set its end time.
Parameters:
Name Type Description
note number The note value.
endTime number The end time to set.
Source: