openmixer — generated API reference
    Preparing search index...

    Function roundToNearestQuantum

    • Round a derived bus count to the nearest whole STRIP_QUANTUM (ties round up), with a floor of one quantum so a tier never vanishes entirely.

      Only for counts the operator does not pin directly: a derived heuristic like "matrices are a quarter of the outputs" is an opening suggestion, so at out=20 its raw 5 lands on 4 rather than inflating to 8. A count the operator did pin (aux = the OUT of the IN:OUT size) must use roundUpToQuantum instead — rounding that one down would take away buses that were explicitly asked for.

      Parameters

      • count: number

        the raw derived bus count

      Returns number

      count moved to the nearest quantum, never below one quantum