mwg API
    Preparing search index...

    Interface ToneOptions

    interface ToneOptions {
        decay?: number;
        duration?: number;
        frequency?: number;
        sampleRate?: number;
        seed?: number;
        volume?: number;
        waveform?: Waveform;
    }
    Index
    decay?: number

    exponential envelope rate over the tone's duration; 0 disables the fade-out

    duration?: number

    seconds

    frequency?: number

    Hz; ignored for 'noise'

    sampleRate?: number
    seed?: number

    seeds 'noise', so the same options reproduce the same waveform

    volume?: number

    peak sample amplitude, 0 to 1

    waveform?: Waveform