Utilities

Convert

power_to_db(X[, min_db])

Convert power spectrogram to relative decibel(dB) spectrogram.

power_to_abs_db(X[, fft_length, is_norm, min_db])

Convert power spectrogram to absolute decibel(dB) spectrogram

mag_to_abs_db(X[, fft_length, is_norm, min_db])

Convert magnitude spectrogram to absolute decibel(dB) spectrogram

log_compress(X[, gamma])

log compression

log10_compress(X[, gamma])

log10 compression

delta(X[, order])

Compute delta features

get_phase(D)

Extract phase data from a complex-valued spectrogram D.

Filter

auditory_weight_a(fre_arr)

Compute the weight-a of a set of frequencies.

auditory_weight_b(fre_arr)

Compute the weight-b of a set of frequencies.

auditory_weight_c(fre_arr)

Compute the weight-c of a set of frequencies.

auditory_weight_d(fre_arr)

Compute the weight-d of a set of frequencies.

Scale

min_max_scale(X)

min max scale

stand_scale(X[, tp])

stand scale

max_abs_scale(X)

max abs scale

robust_scale(X)

robust scale

center_scale(X)

center scale

mean_scale(X)

mean scale

arctan_scale(X)

arctan scale

Audio

read(path)

Load an audio file as a NumPy array of floats.

write(path, data[, samplate, subtype, format])

Write audio data from a NumPy array to the file.

chirp(fmin, fmax, duration[, samplate, phi, ...])

chirp signal

WaveReader(file_path)

Wave Reader

WaveWriter(file_path[, samplate, bit, ...])

Wave Writer

Utils

note_to_midi(note)

Convert note to MIDI number.

note_to_hz(note)

Convert note to the frequency (Hz).

midi_to_note(midi[, is_octave])

Convert MIDI number to note.

midi_to_hz(midi)

Convert MIDI number to the frequency (Hz).

hz_to_note(frequencies)

Convert the frequency (Hz) to note.

hz_to_midi(frequencies)

Convert the frequency (Hz) to MIDI number.

Sample

sample_path(name)

Get sample path