Documentation
librosa.convert
librosa.feature
librosa.effects
librosa.onset
librosa.beat
librosa.decompose
librosa.filters
librosa.util
librosa.segment
librosa.sequence
librosa.display
AudioSamples
audio_samples.spectral
audio_samples.utils
hz_to_mel()
mel_to_hz()
mel_frequencies()
hz_to_midi()
midi_to_hz()
time_to_samples()
samples_to_frames()
frames_to_samples()
time_to_frames_floor()
frames_to_time()
time_to_frames()
times_like()
samples_like()
audio_samples.features
hz_to_octs()
octs_to_hz()
a4_to_tuning()
tuning_to_a4()
cqt_frequencies()
key_to_notes()
key_to_degrees()
dtw()
dtw_backtracking()
viterbi()
viterbi_discriminative()
viterbi_binary()
transition_uniform()
transition_loop()
transition_cycle()
transition_local()
recurrence_matrix()
cross_similarity()
recurrence_to_lag()
lag_to_recurrence()
rqa()
sync()
TimelagFiltered
agglomerative()
diagonal_filter()
path_enhance()
subsegment()
timelag_filter()
MAX_MEM_BLOCK
SparseRows
SparseRows.data
SparseRows.indices
SparseRows.indptr
SparseRows.nnz
SparseRows.shape
SparseRows.toarray()
SparseRows.tocsr()
abs2()
axis_sort()
buf_to_float()
chirp()
count_unique()
cyclic_gradient()
dtype_c2r()
dtype_r2c()
expand_to()
fill_off_diagonal()
find_files()
fix_frames()
index_to_slice()
interp1d()
interp_broadcast()
is_positive_int()
is_unique()
localmax()
localmin()
match_events()
match_intervals()
pad_center()
phasor()
shear()
sparsify_rows()
stack()
tiny()
tone()
valid_audio()
valid_int()
valid_intervals()
zero_crossings()
beat_track()
chroma_cens()
chroma_cqt()
chroma_vqt()
frame()
get_duration()
istft()
onset_detect()
onset_strength()
pitch_shift()
read_segment()
reassigned_spectrogram()
resample()
salience()
stft()
stream_blocks()
tempogram_ratio()
to_mono()
to_multi()
to_stereo()
eigh()
nnls()
pinv()
svd()
mel_to_audio()
mel_to_stft()
mfcc_to_audio()
mfcc_to_mel()
Nmf
Nmf.components_
Nmf.fit_transform()
Nmf.n_iter_
Nmf.reconstruction_err_
Nmf.transform()
decompose()
iirt()
mr_frequencies()
semitone_filterbank()
fifths_to_note()
hz_to_fjs()
hz_to_note()
hz_to_svara_c()
hz_to_svara_h()
interval_frequencies()
interval_to_fjs()
list_mela()
list_thaat()
mela_to_degrees()
mela_to_svara()
midi_to_note()
midi_to_svara_c()
midi_to_svara_h()
note_to_hz()
note_to_midi()
note_to_svara_c()
note_to_svara_h()
plimit_intervals()
pythagorean_intervals()
thaat_to_degrees()
onset_strength_multi()
onset_backtrack()
peak_pick()
tempo_frequencies()
fourier_tempo_frequencies()
tempogram()
fourier_tempogram()
tempo()
hybrid_tempogram()
metrogram()
beat_track_with_bpm()
plp()
phase_vocoder()
preemphasis()
deemphasis()
softmask()
hpss()
nn_filter()
griffinlim()
lpc()
clicks()
sine_wave()
cosine_wave()
sawtooth_wave()
square_wave()
triangle_wave()
impulse()
silence()
sawtooth_wave_bandlimited()
square_wave_bandlimited()
triangle_wave_bandlimited()
am_signal()
fm_signal()
compound_tone()
exponential_chirp()
exponential_bursts()
stereo_chirp()
stereo_silence()
stereo_sine_wave()
white_noise()
pink_noise()
brown_noise()
example_clip()
example_clip_names()
example_speech_f0()
read()
read_with_info()
save()
write_with_options()
write_with_metadata()
read_and_resample()
peek_native_type()
StreamedAudioReader
StreamedAudioWriter
WavSink
StreamedFrameIterator
WriteOptions
CompressionLevel
WavMetadata
InfoMetadata
CuePoint
VorbisComment
StreamInfo
read_flac_stream_info()
read_wav_cue_points()
read_wav_info_tags()
info()
AudioInfo
AdaptiveThresholdConfig
AdaptiveThresholdConfig.combined()
AdaptiveThresholdConfig.default()
AdaptiveThresholdConfig.delta()
AdaptiveThresholdConfig.max_threshold
AdaptiveThresholdConfig.min_threshold
AdaptiveThresholdConfig.percentile()
AdaptiveThresholdConfig.validate()
AdaptiveThresholdMethod
AdaptiveThresholdMethod.combined
AdaptiveThresholdMethod.default()
AdaptiveThresholdMethod.delta
AdaptiveThresholdMethod.percentile
BeatTrackingConfig
BeatTrackingConfig.onset_config
BeatTrackingConfig.tempo_bpm
BeatTrackingConfig.tolerance
BeatTrackingData
BeatTrackingData.beat_times
BeatTrackingData.config
BeatTrackingData.tempo_bpm
ChannelReduction
ChannelReduction.average
ChannelReduction.channel()
ChannelReduction.default()
ChannelReduction.error
ChannelReduction.first
ComplexOnsetConfig
ComplexOnsetConfig.cqt_params
ComplexOnsetConfig.hop_size
ComplexOnsetConfig.log_compression
ComplexOnsetConfig.magnitude_rectify
ComplexOnsetConfig.magnitude_weight
ComplexOnsetConfig.musical()
ComplexOnsetConfig.peak_picking
ComplexOnsetConfig.percussive()
ComplexOnsetConfig.phase_rectify
ComplexOnsetConfig.phase_weight
ComplexOnsetConfig.set_weights()
ComplexOnsetConfig.speech()
ComplexOnsetConfig.validate()
ComplexOnsetConfig.window_size
CompressorConfig
CompressorConfig.attack_ms
CompressorConfig.bus
CompressorConfig.default()
CompressorConfig.detection_method
CompressorConfig.drum
CompressorConfig.explain()
CompressorConfig.knee_type
CompressorConfig.knee_width_db
CompressorConfig.lookahead_ms
CompressorConfig.makeup_gain_db
CompressorConfig.ratio
CompressorConfig.release_ms
CompressorConfig.side_chain
CompressorConfig.threshold_db
CompressorConfig.validate()
CompressorConfig.vocal
DynamicRangeMethod
DynamicRangeMethod.default()
DynamicRangeMethod.hybrid
DynamicRangeMethod.peak
DynamicRangeMethod.rms
EnvelopeFollower
EnvelopeFollower.default()
EnvelopeFollower.process()
EnvelopeFollower.process_array()
EnvelopeFollower.reset()
EqBand
EqBand.enabled
EqBand.explain()
EqBand.frequency
EqBand.gain_db
EqBand.high_shelf()
EqBand.low_shelf()
EqBand.peak()
EqBand.q_factor
EqBandType
EqBandType.band_pass
EqBandType.band_stop
EqBandType.default()
EqBandType.high_pass
EqBandType.high_shelf
EqBandType.low_pass
EqBandType.low_shelf
EqBandType.peak
ExpanderConfig
ExpanderConfig.attack_ms
ExpanderConfig.default()
ExpanderConfig.gentle
ExpanderConfig.ratio
ExpanderConfig.release_ms
ExpanderConfig.threshold_db
ExpanderConfig.validate()
FadeCurve
FadeCurve.default()
FadeCurve.exponential
FadeCurve.linear
FadeCurve.logarithmic
FadeCurve.smooth_step
FilterResponse
FilterResponse.bandpass
FilterResponse.bandstop
FilterResponse.default()
FilterResponse.highpass
FilterResponse.lowpass
GateConfig
GateConfig.attack_ms
GateConfig.default()
GateConfig.noise_gate
GateConfig.ratio
GateConfig.release_ms
GateConfig.threshold_db
GateConfig.validate()
HpssConfig
HpssConfig.freq_resolution()
HpssConfig.harmonic
HpssConfig.musical
HpssConfig.num_freq_bins()
HpssConfig.percussive
HpssConfig.realtime
HpssConfig.set_filter_sizes()
HpssConfig.set_mask_softness()
HpssConfig.set_stft_params()
HpssConfig.time_resolution()
IirFilterDesign
IirFilterDesign.bessel()
IirFilterDesign.bessel_band()
IirFilterDesign.bessel_norm
IirFilterDesign.butterworth_bandpass()
IirFilterDesign.butterworth_bandstop()
IirFilterDesign.butterworth_highpass()
IirFilterDesign.butterworth_lowpass()
IirFilterDesign.chebyshev_i()
IirFilterDesign.chebyshev_i_band()
IirFilterDesign.chebyshev_ii()
IirFilterDesign.chebyshev_ii_band()
IirFilterDesign.cutoff_frequency
IirFilterDesign.elliptic()
IirFilterDesign.elliptic_band()
IirFilterDesign.explain()
IirFilterDesign.filter_type
IirFilterDesign.frequency_response()
IirFilterDesign.high_frequency
IirFilterDesign.low_frequency
IirFilterDesign.order
IirFilterDesign.passband_ripple
IirFilterDesign.response
IirFilterDesign.sos()
IirFilterDesign.stopband_attenuation
IirFilterType
IirFilterType.bessel
IirFilterType.butterworth
IirFilterType.chebyshev_type_i
IirFilterType.chebyshev_type_ii
IirFilterType.default()
IirFilterType.elliptic
Key
Key.confidence
Key.mode
Key.tonic
KneeType
KneeType.default()
KneeType.hard
KneeType.soft
LimiterConfig
LimiterConfig.attack_ms
LimiterConfig.broadcast()
LimiterConfig.ceiling_db
LimiterConfig.default()
LimiterConfig.detection_method
LimiterConfig.explain()
LimiterConfig.isp_limiting
LimiterConfig.knee_type
LimiterConfig.knee_width_db
LimiterConfig.lookahead_ms
LimiterConfig.mastering()
LimiterConfig.release_ms
LimiterConfig.side_chain
LimiterConfig.transparent()
LimiterConfig.validate()
Mode
Mode.major
Mode.minor
MonoConversionMethod
MonoConversionMethod.average
MonoConversionMethod.center
MonoConversionMethod.default()
MonoConversionMethod.left
MonoConversionMethod.right
MonoConversionMethod.weighted()
NoiseColor
NoiseColor.brown
NoiseColor.default()
NoiseColor.pink
NoiseColor.white
NormalizationMethod
NormalizationMethod.default()
NormalizationMethod.mean
NormalizationMethod.median
NormalizationMethod.minmax
NormalizationMethod.peak
NormalizationMethod.zscore
OnsetDetectionConfig
OnsetDetectionConfig.adaptive_threshold
OnsetDetectionConfig.adaptive_threshold_multiplier
OnsetDetectionConfig.cqt_params
OnsetDetectionConfig.default()
OnsetDetectionConfig.explain()
OnsetDetectionConfig.hop_size
OnsetDetectionConfig.median_filter_length
OnsetDetectionConfig.musical()
OnsetDetectionConfig.peak_picking
OnsetDetectionConfig.percussive()
OnsetDetectionConfig.speech()
OnsetDetectionConfig.window_size
PadSide
PadSide.default()
PadSide.left
PadSide.right
ParametricEq
ParametricEq.add_band()
ParametricEq.bypassed
ParametricEq.output_gain_db
ParametricEq.remove_band()
PeakPickingConfig
PeakPickingConfig.default()
PeakPickingConfig.drums()
PeakPickingConfig.min_peak_separation
PeakPickingConfig.music()
PeakPickingConfig.set_median_filter()
PeakPickingConfig.set_min_peak_separation_ms()
PeakPickingConfig.set_pre_emphasis()
PeakPickingConfig.speech()
PeakPickingConfig.validate()
PerturbationConfig
PerturbationConfig.seed
PerturbationConfig.validate()
PerturbationMethod
PerturbationMethod.brown_noise()
PerturbationMethod.gaussian()
PerturbationMethod.high_pass_filter()
PerturbationMethod.high_pass_filter_with_slope()
PerturbationMethod.low_pass_filter()
PerturbationMethod.low_pass_filter_with_slope()
PerturbationMethod.pink_noise()
PerturbationMethod.pitch_shift()
PerturbationMethod.random_gain()
PerturbationMethod.validate()
PerturbationMethod.white_noise()
PitchClass
PitchClass.a
PitchClass.a_sharp
PitchClass.b
PitchClass.c
PitchClass.c_sharp
PitchClass.d
PitchClass.d_sharp
PitchClass.e
PitchClass.f
PitchClass.f_sharp
PitchClass.from_index()
PitchClass.g
PitchClass.g_sharp
PitchClass.to_index()
PitchContour
PitchContour.frames()
PitchContour.mean_pitch()
PitchContour.voiced_frames()
PitchDetectionMethod
PitchDetectionMethod.autocorrelation
PitchDetectionMethod.cepstrum
PitchDetectionMethod.default()
PitchDetectionMethod.harmonic_product
PitchDetectionMethod.yin
PitchFrame
PitchFrame.frequency
PitchFrame.time
PitchFrame.voiced
Psd
Psd.density
Psd.frequencies
Psd.into_parts()
ResamplingQuality
ResamplingQuality.default()
ResamplingQuality.fast
ResamplingQuality.high
ResamplingQuality.medium
ResamplingQuality.very_high
SampleType
SampleType.F32
SampleType.F64
SampleType.I16
SampleType.I24
SampleType.I32
SampleType.U8
SideChainConfig
SideChainConfig.default()
SideChainConfig.enabled
SideChainConfig.external_mix
SideChainConfig.high_pass_freq
SideChainConfig.low_pass_freq
SideChainConfig.pre_emphasis_db
SosFilter
SosFilter.filtfilt()
SosFilter.frequency_response()
SosFilter.from_design()
SosFilter.from_sos()
SosFilter.process_block()
SosFilter.process_sample()
SosFilter.process_samples()
SosFilter.process_samples_in_place()
SosFilter.reset()
SosFilter.sos()
SpectralFluxConfig
SpectralFluxConfig.complex
SpectralFluxConfig.cqt_params
SpectralFluxConfig.flux_method
SpectralFluxConfig.hop_size
SpectralFluxConfig.log_compression
SpectralFluxConfig.musical()
SpectralFluxConfig.peak_picking
SpectralFluxConfig.percussive()
SpectralFluxConfig.rectify
SpectralFluxConfig.validate()
SpectralFluxConfig.window_size
SpectralFluxMethod
SpectralFluxMethod.complex
SpectralFluxMethod.energy
SpectralFluxMethod.magnitude
SpectralFluxMethod.rectified_complex
SpectrogramScale
SpectrogramScale.default()
SpectrogramScale.linear
SpectrogramScale.log
SpectrogramScale.mel
StereoConversionMethod
StereoConversionMethod.default()
StereoConversionMethod.duplicate
StereoConversionMethod.left
StereoConversionMethod.pan()
StereoConversionMethod.right
ThreeBandEqConfig
ThreeBandEqConfig.default()
ThreeBandEqConfig.flat
ThreeBandEqConfig.high_freq
ThreeBandEqConfig.high_gain
ThreeBandEqConfig.low_freq
ThreeBandEqConfig.low_gain
ThreeBandEqConfig.mid_freq
ThreeBandEqConfig.mid_gain
ThreeBandEqConfig.mid_q
ThreeBandEqConfig.validate()
VadChannelPolicy
VadChannelPolicy.all_channels
VadChannelPolicy.any_channel
VadChannelPolicy.average_to_mono
VadChannelPolicy.channel()
VadChannelPolicy.default()
VadConfig
VadConfig.channel_policy
VadConfig.default()
VadConfig.energy_only
VadConfig.energy_threshold_db
VadConfig.explain()
VadConfig.frame_size
VadConfig.hangover_frames
VadConfig.hop_size
VadConfig.method
VadConfig.min_silence_frames
VadConfig.min_speech_frames
VadConfig.pad_end
VadConfig.smooth_frames
VadConfig.spectral_ratio_threshold
VadConfig.speech_band_high_hz
VadConfig.speech_band_low_hz
VadConfig.validate()
VadConfig.zcr_max
VadConfig.zcr_min
VadMethod
VadMethod.combined
VadMethod.default()
VadMethod.energy
VadMethod.spectral
VadMethod.zcr
WindowType
WindowType.blackman
WindowType.default()
WindowType.gaussian()
WindowType.hamming
WindowType.hanning
WindowType.kaiser()
WindowType.rectangular
Development
IIR filters and parametric EQ. See also the tutorials Convolution and FIR filters and IIR filters.
Low-pass and high-pass filters
Parametric EQ