from_max_ms¶
- sonipy.from_max_ms(x, dtime_max)¶
Calculates a time scale in units of x value / time (ms), by matching the largest time step in the x array to the input dtime_max.
- Parameters
- xarr
Array of x positions that will correspond to blip times.
- dtime_maxfloat
Maximum allowed time difference between blips (in ms).
- Returns
- float
Returns a time scale calculated from the maximum dt.