framesToTime

fun framesToTime(frame: Int, sampleRate: Int, hopLength: Int): Double

Convert frame index to time (in seconds).

Return

Time in seconds

Parameters

frame

Frame index

sampleRate

Audio sample rate (Hz)

hopLength

Hop length (samples)


fun framesToTime(frames: List<Int>, sampleRate: Int, hopLength: Int): List<Double>

Convert list of frame indices to times.

Return

List of times in seconds

Parameters

frames

List of frame indices

sampleRate

Audio sample rate (Hz)

hopLength

Hop length (samples)