openmixer — generated API reference
    Preparing search index...

    Function taperOfScale

    • A FaderScale sampled into a piecewise Taper — the curve as DATA, so a client can draw a throw it does not implement.

      A taper is per DEVICE (adapter.faderScale(channel)), so a surface cannot hold one: its ticks, its readout and its drag would each be a second opinion about a mapping only the adapter knows. Sampled by POSITION at uniform steps rather than at chosen dB anchors, so the result is faithful for ANY monotonic scale rather than only one whose landmarks we guessed.

      Parameters

      • scale: FaderScale

        the device's taper

      • steps: number = 24

        how many intervals to sample; more points, closer fit

      Returns Taper

      breakpoints ascending in both position and dB, ready for makeParam