openmixer — generated API reference
    Preparing search index...

    Function subsampleToCap

    • Evenly subsample items down to cap entries, keeping the first and last — so a layout that outgrows a hard cap loses DENSITY, not spectrum coverage. Used to clamp every preset's band list to EQ_MAX_BANDS at construction. A no-op when items already fits.

      Type Parameters

      • T

      Parameters

      • items: readonly T[]
      • cap: number

      Returns T[]