Class: Track

Track()

Encapsulates each track in the music composed of an array of track names and a TrackMetaData object

Constructor

new Track()

Creates a new Track
Source:

Methods

addTrackName(name)

Add name to track names
Parameters:
Name Type Description
name string name to be added
Source:

copy(source)

Copies trackNames and trackData from source
Parameters:
Name Type Description
source object Source must have trackNames and trackData
Properties:
Name Type Description
source.trackNames Array.<string> The names for the track
source.trackData TrackMetaData The data for the track
Source:

getTrackName() → {string}

Gets the first track name
Source:
Returns:
The first value in trackNames
Type
string

toString() → {string}

Converts Track to a pretty string
Source:
Returns:
The pretty string representation of the track
Type
string