musicaiz.rhythm._find_nearest

musicaiz.rhythm._find_nearest(array: List[Union[int, float]], value: Union[int, float]) Union[int, float][source]

Find de array component value closest to a given value [3, 6, 9, 12] 5 –> 6