lib/file.js
function File(data, callback) {
    stream.Duplex.call(this);

    this._header = new Header();
    this._tracks = [];

    if (data && buffer.Buffer.isBuffer(data)) {
        this.setData(data, callback || noop);
    }
}
function File(data, callback) {
    stream.Duplex.call(this);

    this._header = new Header();
    this._tracks = [];

    if (data && buffer.Buffer.isBuffer(data)) {
        this.setData(data, callback || noop);
    }
}
function File ( data , callback ) { stream . Duplex . call ( this ) ; this . _header = new Header ( ) ; this . _tracks = [ ] ; if ( data && buffer . Buffer . isBuffer ( data ) ) { this . setData ( data , callback || noop ) ; } }
Construct a new File

@class File
@extends stream.Duplex
@classdesc Parse and encode MIDI data

@param {Buffer} [data] Shortcut for calling setData()
@param {Function} [callback] Callback for setData() shortcut
Construct a new File