iracema.segmentation.odfs¶
-
iracema.segmentation.odfs.
odf_adaptative_rms
(audio, long_window=4096, short_window=512, hop=512, alpha=0.1, display_plot_rms=False)[source]¶ - Parameters
audio (Audio) – Audio time series.
short_window (int) – Length of the short term window for the calculation of the RMS.
long_window (int) – Length of the long term window for the calculation of the RMS.
hop – Length of the hop for the sliding window.
alpha – Reduction factor for the long term RMS curve.
display_plot_rms (bool) – Whether of not to plot the RMS curves.
- Returns
odf – Onset detection function.
- Return type
-
iracema.segmentation.odfs.
odf_rms_derivative
(audio, window=1024, hop=512)[source]¶ Onset detection function based on RMS.
- Parameters
audio (Audio) – Audio object
window (int) – Window length for computing the RMS.
hop (int) – Hop length for computing the RMS.
- Returns
odf – Onset detection function.
- Return type
-
iracema.segmentation.odfs.
odf_pitch_change
(audio, window=1024, hop=512, minf0=120, maxf0=4000, smooth_pitch=True)[source]¶ Onset detection function based on Pitch.
- Parameters
audio (Audio) – Audio object
window (int) – Window length for computing the pitch.
hop (int) – Hop length for computing the pitch.
minf0 (int) – Minimum frequency for the pitch detection.
maxf0 (int) – Maximum frequency for the pitch detection.
smooth_pitch (bool) – Whether or not the pitch curve should be smoothed.
- Returns
odf – Onset detection function.
- Return type