Module time

Source

Functionsยง

blocks_to_frames
Converts block indices to frame indices.
blocks_to_samples
Converts block indices to sample indices.
blocks_to_time
Converts block indices to time values in seconds.
frames_to_samples
Converts frame indices to sample indices.
frames_to_time
Converts frame indices to time values in seconds.
get_duration
Calculates the duration of an audio signal in seconds.
get_duration_from_path
Calculates the duration of an audio file from its path.
get_samplerate
Extracts sample rate from WAV file header.
samples_like
Generates sample indices corresponding to the columns of a 2D array.
samples_to_frames
Converts sample indices to frame indices.
samples_to_time
Converts sample indices to time values in seconds.
time_to_frames
Converts time values in seconds to frame indices.
time_to_samples
Converts time values in seconds to sample indices.
times_like
Generates time values corresponding to the columns of a 2D array.