Hiyve Components - v1.0.0
    Preparing search index...

    Interface AnalyzeTakeAudioOptions

    Options for analyzeTakeAudio and verifyTakeAudio.

    interface AnalyzeTakeAudioOptions {
        maxFlatness?: number;
        onsets?: OnsetListOptions;
        pitch?: EstimatePitchesOptions;
        pitchChanges?: PitchChangeOptions;
        readOffsetsMs?: number[];
        windowSize?: number;
    }
    Index

    Properties

    maxFlatness?: number

    Attacks whose spectrum is flatter than this (1 = white noise, near 0 = a few clear peaks) are not notes — a bump, a click — and are skipped by analyzeTakeAudio (default: 0.05)

    Attack detection

    Pitch estimation

    pitchChanges?: PitchChangeOptions

    Take a change of pitch as an attack as well — for a legato line, where one note turns into the next with no new burst of energy: a voice, a bowed string, a wind instrument, a sustained patch. Off unless given; {} turns it on with the defaults.

    readOffsetsMs?: number[]

    When, after an attack, the spectrum is read; the reads are averaged (default: 15, 35, 55, 75 ms)

    windowSize?: number

    FFT length (default: 8192)