librosa.output.frames_csv¶
- librosa.output.frames_csv(path, frames, sr=22050, hop_length=512, n_fft=None, **kwargs)[source]¶
Convert frames to time and store the output in CSV format.
Warning
Deprecated in librosa 0.4 Functionality is redundant with times_csv
Parameters: path : string
path to save the output CSV file
frames : list-like of ints
list of frame numbers for beat events
sr : number > 0 [scalar]
audio sampling rate
hop_length : int > 0 [scalar]
number of samples between success frames
n_fft : None or int > 0
length of the FFT window, if using left-aligned frames. If specified, the output time[i] will correspond to the center of the frame starting at frames[i] * hop_length samples.
kwargs : additional keyword arguments
Arguments passed through to times_csv
See also
Examples
>>> y, sr = librosa.load(librosa.util.example_audio_file()) >>> tempo, beats = librosa.beat.beat_track(y, sr=sr) >>> librosa.output.frames_csv('beat_times.csv', beats, sr=sr)