openmixer — generated API reference
    Preparing search index...

    Function coerceBusesToQuantum

    • Bring an arbitrary BusAllocation onto the STRIP_QUANTUM grid, reporting every count it had to move.

      Setup should not offer an off-grid count in the first place; this is the back-stop for a value arriving from elsewhere (a hand-edited or older session file). It coerces loudly: the caller gets the list of changes so it can tell the operator what happened instead of silently swapping their numbers. Coercion is always upwards, so nothing is taken away.

      main is left exactly as supplied — it is not a banked strip, so the grid does not apply.

      Parameters

      Returns CoercedBuses

      the on-grid counts and the coercions applied