A spectral analysis and feature extraction library similar to Sound Analysis Pro
Resin is a spectral analysis toolbox for Python inspired by SAP.
Optional Requirements
git clone https://github.com/kylerbrown/resin
cd resin
pip install .
The folder examples
contains some example usage.
# loading in the data
sr, data = wavfile.read('black33.wav')
# create a Spectra object using SAP-like defaults
spa = resin.sap_spectra(sr)
spa.signal(data)
spa.spectrogram()
# Alternately, customize the mutli-taper parameters
# by creating a Spectra object directly.
spa2 = resin.Spectra(sr,
NFFT=1024,
noverlap=1000,
data_window=int(0.01 * sr),
n_tapers=3,
NW=1.8,
freq_range=(300, 9000))
spa2.signal(data)
spa2.spectrogram()
resin
to use a faster fft library than the numpy default. In my experience, scipy’s fft is about 40% faster than numpy’s, even when using the Anaconda MKL FFT.Mike Lusignan wrote segmentation
as part of his PhD thesis. Details of the algorithms can be found in:
Lusignan, M. E. University of Chicago. (2012). Growing up singing: Behavioral and physiological perspectives on song acquisition.
Resin is a fork of segmentation
, writen by Kyler Brown, 2017.