[−][src]Function bounced::samples
pub const fn samples(sample_freq: usize, hold_time_ms: usize) -> usize
Computes the samples
Computes the number of samples which have occurred at the sample_freq
(the
rate at which the input is probed in Hz) in the duration of hold_time_ms
(in ms). If a partial sample will have occurred, rounds up.
The purpose of this function is to determine the number of samples to wait
before the Integrator
can settle on an
output.
As if computing max = sampling_freq * min_hold_time
.