findBin(bins: Bin[], value: number, target: TargetId): Bin
Return bin in which the given value lies. Assume bins are properly sorted.
value can be null, in which case we look for the last bin (which is onset bin).
findBinIndex(bins: Bin[], value: number, target: TargetId): number
Return bin index in which the given value lies. Assume bins are properly sorted.
value can be null, in which case we look for the last bin (which is onset bin).
Module for working with Bins