pytimbre.spectral.timbral_model.timbral_util¶
Functions
|
Design a butterworth bandpass filter |
|
Calculate the attack time from the envelope of a signal. |
Calculate the gradient ferom the bandwidth array |
|
|
Calculates the onset times using a look backwards recursive function to identify actual note onsets, and weights |
|
Calculate the RMS envelope of the audio signal. |
|
Algorithm for reducing the number of channels in a read-in audio file |
|
Check if upsampling needfs to be applied, then perform it if necessary |
|
Converts from dB to linear magnitude. |
|
Function detects the peaks in array, based from the mirpeaks algorithm. |
|
Calculates the hilbert transform of the array by segmenting signal first to speed up calculation. |
|
Calculates the hilbert transform of the array by segmenting signal first to speed up calculation. |
|
Read in audio file, but check if it's already an array |
|
Calculate and apply an n/octave butterworth bandpass filter, centred at f0 Hz. |
|
Calculate and apply a high-pass filter, with a -3dB point of crossover. |
|
Calculate and apply a low-pass filter, with a -3dB point of crossover. |
|
Design Butterworth 2nd-order one-third-octave filter. |
|
Calculate the bandwidth array estimate for an audio signal. |
|
Gets the percussive comonent of the audio file. |
|
This function calculates the spectral centroid and spectral spread of an audio array. |
|
|
|
This function calculates the log sum of an array |
|
Takes in audio data and returns the same audio loudness normalised |
|
Define a method for calculating the hilbert transform of a 1D array using the method from Matlab |
|
|
|
Limits the output of the score between min_score and max_score |
|
This function is used by the calculate_onsets method. |
|
Calculates the envelope of audio_samples with a 'sample and hold' style function. |
|
|
|
Calculates loudness in 3rd octave bands based on ISO 532 B / DIN 45631 Source: BASIC code in J Acoust Soc Jpn( E) 12, 1(1991) |
|
This computes the spectral flux: the difference between sucesive spectrogram time frames |
|
|
|
Segment the audio samples into a numpy array the correct size and shape, so that each row is a new window of audio |