openmixer — generated API reference
    Preparing search index...

    Function hrpLadder

    • A per-harmonic array of length entries built from a sparse list of (harmonic, value) pairs — the shape HrpVoiceMeasurement wants, from the shape both measuring tiers produce.

      The off-by-one lives HERE and nowhere else: harmonics are 1-based (harmonic 1 IS the fundamental) and the arrays are 0-based, and that single fact has to be got right in one place or a whole ladder is corrected one partial off.

      Type Parameters

      • T

      Parameters

      • entries: readonly { harmonic: number; value: T }[]
      • length: number
      • absent: T

      Returns T[]