Class Writer

Object that puts together tracks and provides methods for file output.

Param

A single {Track} object or an array of {Track} objects.

Param

{middleC: 'C4'}

Returns

Hierarchy

  • Writer

Constructors

Properties

options: object
tracks: Track[]

Methods

  • Convert file buffer to a base64 string. Different methods depending on if browser or node.

    Returns string

  • Builds array of data from chunkschunks.

    Returns any[]

  • Builds the file into a Uint8Array

    Returns Uint8Array

  • Get the data URI.

    Returns string

  • Set option on instantiated Writer.

    Parameters

    • key: string
    • value: string | number

    Returns Writer

  • Output to stdout

    Returns boolean

Generated using TypeDoc