spessasynth_core documentation
    Preparing search index...

    Interface WaveWriteOptions

    Options for writing a WAVE file.

    interface WaveWriteOptions {
        loop?: { end: number; start: number };
        metadata: Partial<WaveMetadata>;
        normalizeAudio: boolean;
    }
    Index
    loop?: { end: number; start: number }

    The loop start and end points. Undefined if no loop should be written. The loop will be written to the file (using the cue chunk)

    Type Declaration

    • end: number

      The end point in seconds.

    • start: number

      The start point in seconds.

    metadata: Partial<WaveMetadata>

    The metadata to write into the file.

    The metadata uses the INFO chunk to write the information. It is encoded with utf-8

    normalizeAudio: boolean

    If true, the gain of the entire song will be adjusted, so the max sample is always 32,767 or min is always -32,768 (whichever is greater). Recommended.