Util¶
Signal segmentation¶
segmentSignal (signal, window_len, hop) |
Segmentation of an array-like input: |
beat2signal (y, time, beats, ind_beat) |
Get the signal fragment corresponding to a beat given by index ind_beat. |
get_time_segment (y, time, time_ini, time_end) |
Get a segment of an array, given by initial and ending indexes. |
Time-frequency¶
STFT (x, window_length, hop[, …]) |
Calculates the Short-Time Fourier Transform a signal. |
fft2mel (freq, nfilts, minfreq, maxfreq) |
This method returns a 2-D Numpy array of weights that map a linearly spaced spectrogram to the Mel scale. |
hz2mel (f_hz) |
Converts a given frequency in Hz to the Mel scale. |
mel2hz (z_mel) |
Converts a given frequency in the Mel scale to Hz scale. |
Miscellaneous¶
example_audio_file ([num_file]) |
Get the path to an included audio example file. |
example_beats_file ([num_file]) |
Get the path to an included example file of beats annotations. |
find_nearest (array, value) |
Find index of the nearest value of an array to a given value |
deltas (x[, w]) |
this function estimates the derivative of x |