spessasynth_lib documentation
    Preparing search index...

    Interface OfflineRenderWorkletData<T>

    Options for rendering the audio using WorkletSynthesizer.

    interface OfflineRenderWorkletData<T extends SynthesizerSnapshot> {
        loopCount: number;
        midiSequence: BasicMIDI;
        sequencerOptions?: Partial<SequencerOptions>;
        snapshot?: T;
        soundBankList: { bankOffset: number; soundBankBuffer: ArrayBuffer }[];
    }

    Type Parameters

    • T extends SynthesizerSnapshot
    Index
    loopCount: number

    The number of times to loop the song.

    midiSequence: BasicMIDI

    The MIDI sequence to render.

    sequencerOptions?: Partial<SequencerOptions>

    The options to pass to the playback sequencer.

    snapshot?: T

    Optional, the snapshot to apply before starting the render.

    soundBankList: { bankOffset: number; soundBankBuffer: ArrayBuffer }[]

    The list of sound banks to render this file with.

    Type Declaration

    • bankOffset: number

      The bank MSB offset for this sound bank.

    • soundBankBuffer: ArrayBuffer

      The binary representation of the sound bank file.