getLayerPos(radix
, index
): number
Get the highest layer for which this (pulse) index is an anchor for. For example: in base 10, for the following indicies...
getLayerPos(10, 1560) == 1 // (multiple of 10)
getLayerPos(10, 1264) == 0 // (NOT a multiple of 10)
getLayerPos(10, 3000) == 3 // (multiple of 1000)
getLayerPos(10, 3700) == 2 // (multiple 100)