Module utils

Source
Expand description

Misc utilities

Functionsยง

convert_num_samples
Convert a number of samples at an old sample rate and channel count to a new number of samples at a different channel rate or sample count such that the new number of samples would be at the same time offset as the old number of samples.
duration_to_num_samples
Return the number of samples that happen within duration amount of time (truncates).