Time unit conversion#

frames_to_samples

Convert frame indices to audio sample indices.

frames_to_time

Convert frame counts to time (seconds).

samples_to_frames

Convert sample indices into STFT frames.

samples_to_time

Convert sample indices to time (in seconds).

time_to_frames

Convert time stamps into STFT frames.

time_to_samples

Convert timestamps (in seconds) to sample indices.

blocks_to_frames

Convert block indices to frame indices

blocks_to_samples

Convert block indices to sample indices

blocks_to_time

Convert block indices to time (in seconds)

samples_like

Return an array of sample indices to match the time axis from a feature matrix.

times_like

Return an array of time values to match the time axis from a feature matrix.