Getting started
API Documentation
Development
Duration in samples.
The duration is evenly rounded, after converted to samples.
duration (float) – duration in s
float
sampling_rate (int) – sampling rate in Hz
int
duration in number of samples
Examples
>>> samples(0.5, 10) 5 >>> samples(0.55, 10) 6