spessasynth_core documentation
    Preparing search index...

    Interface MIDIBuilderOptions

    Options for initializing the MIDI Builder.

    interface MIDIBuilderOptions {
        format: MIDIFormat;
        initialTempo: number;
        name: string;
        timeDivision: number;
    }
    Index
    format: MIDIFormat

    The MIDI file track format. Format 0 allows only one track while format 1 allows more than one. Format 2 is very rare and should not be used.

    initialTempo: number

    The MIDI file's initial tempo in BPM. Defaults to 120.

    name: string

    The MIDI file's name. Will be appended to the conductor (first) track and encoded with UTF-8.

    timeDivision: number

    The MIDI file's tick precision (how many ticks fit in a quarter note). Defaults to 480. See BasicMIDI.timeDivision