/**
 * @private
 * @module midijs/lib/file/track
 */

'use strict';

/**
 * Track
 *
 * Represent a Standard MIDI file track
 *
 * @constructor
 * @param {Array<module:midijs/lib/file/event~Event>} events
 * List of events in the track
 * @property {Array<module:midijs/lib/file/event~Event>} events
 * List of events in the track
 */
function Track(events) {
    if (arguments.length > 1) {
        this.events = [].slice.call(arguments);
    } else if (events === undefined || events === null) {
        this.events = [];
    } else {
        this.events = [].slice.call(events);
    }
}

exports.Track = Track;

@@ -62,16 +62,55 @@
 rict';%0A%0A
+var Event = require('./event').Event;%0A%0A
 /**%0A * T
@@ -556,16 +556,90 @@
 s = %5B%5D;%0A
+    %7D else if (events instanceof Event) %7B%0A        this.events = %5Bevents%5D;%0A
     %7D el

Allow single event in a track