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

    Interface PitchChangeOptions

    How a change of pitch is taken as an attack (see AnalyzeTakeAudioOptions.pitchChanges).

    interface PitchChangeOptions {
        holdHops?: number;
        hopMs?: number;
        maxFlatness?: number;
        minConfidence?: number;
        minIntervalMs?: number;
        minSemitones?: number;
        windowSize?: number;
    }
    Index

    Properties

    holdHops?: number

    Reads in a row a new pitch must hold before it counts — longer than a vibrato swing (default: 3)

    hopMs?: number

    How often the pitch is read (default: 40 ms)

    maxFlatness?: number

    Reads flatter than this are noise, not a note (default: 0.05)

    minConfidence?: number

    Pitches read below this confidence are not believed (default: 0.3)

    minIntervalMs?: number

    Shortest gap between two reported onsets (default: 120 ms)

    minSemitones?: number

    Smallest move, in semitones, that is a new note (default: 1)

    windowSize?: number

    FFT length of each read (default: 8192)