mwg API
    Preparing search index...

    Interface RenderMidiAsyncOptions

    interface RenderMidiAsyncOptions {
        channels?: readonly number[];
        gain?: number;
        maxDuration?: number;
        missingProgram?: MissingProgram;
        sampleRate?: number;
        soundFontBytes?: ArrayBuffer | ArrayBufferView<ArrayBufferLike>;
        synth?: MidiSynthRequest;
    }
    Index
    channels?: readonly number[]

    voices only these channels (0 to 15), as for renderMidiToBuffer

    gain?: number

    master level, 0 to 1

    maxDuration?: number

    hard cap on rendered seconds; longer tails are cut

    missingProgram?: MissingProgram

    what plays for a program the font lacks, as for parseSoundFont; 'piano' when omitted

    sampleRate?: number

    output sample rate in Hz

    soundFontBytes?: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

    raw SoundFont 2 bytes: parsed on this thread, voiced on the worker

    a MidiSynth request as for renderMidiToBuffer; a synth lives on this thread, so such a render does not go to the worker