MAIDR JavaScript API
    Preparing search index...

    Function clampFrequencyRange

    • Brings the sonification pitch range into something a listener can hear.

      Both Settings fields are free-typed, and AudioService interpolates every data point into this range with no clamp of its own, so whatever is persisted here is what the chart sounds like — and it survives a reload, since it lives in localStorage. A cleared field reads back as 0, which maps the whole chart below hearing; a min above the max inverts the mapping, so higher values sound lower. Neither is a range, so both fall back to the defaults rather than being persisted.

      Parameters

      • min: number

        The raw lower bound, in Hz

      • max: number

        The raw upper bound, in Hz

      Returns { minFrequency: number; maxFrequency: number }

      An audible, rising pitch range