getNumBlocks method

int getNumBlocks(
  1. int audioValue
)

Implementation

int getNumBlocks(int audioValue) {
  return (audioValue / 255 * 32).round().clamp(1, 32);
}