openmixer — generated API reference
    Preparing search index...

    Function accumFromImpulseResponse

    • Fold a time-domain impulse response into the SAME RoomTransferAccum roomTransferAccumulate produces from a run of frames — the seam the log-sweep path (spec §3a amendment 2026-09-21) uses to feed the shared IR/transfer readers without minting a second representation.

      The IR is zero-padded to the next power of two, forward-transformed, and its one-sided spectrum kept over the SAME band selection roomTransferAccumulate uses (kLo/kHi from band). Coherence reads 1 inside the band: a single deterministic swept-sine deconvolution is fully correlated by construction — coherence is the live pink read's N-frame statistic, not this path's, whose confidence is SNR/distortion (spec §3a amendment). frames reports 1 (one sweep).

      Refuses the same vocabulary the frame-fold does: shape-mismatch when the transform cannot run, empty-band when the band selects no bins, no-shared-energy when the band is silent.

      Parameters

      • ir: readonly number[] | Float64Array<ArrayBufferLike>
      • sampleRate: number
      • band: AlignBand = DEFAULT_BAND

      Returns RoomTransferAccumResult