DEMO_NSGTF - Nonstationary Gabor filterbank usage demo

Description

This script sets up different nonstationary Gabor filterbank frames with the specified parameters, computes filters and corresponding canonical dual filters as well as the transform and reconstruction of a test signal, and plots the filters and the energy of the coefficients.

demo_nsgtf_1.png

filters + dual filters (constant-Q)

This figure shows the filter functions used in the constant-Q filterbank and the corresponding canonical dual filters.
demo_nsgtf_2.png

constant-Q spectrogram (absolute value of coefficients in dB)

This figure shows a (color coded) image of the constant-Q coefficient modulus.
demo_nsgtf_3.png

filters + dual filters (ERBlet)

This figure shows the filter functions used in the ERBlet filterbank and the corresponding canonical dual filters.
demo_nsgtf_4.png

ERBlet spectrogram (absolute value of coefficients in dB)

This figure shows a (color coded) image of the ERBlet coefficient modulus.
demo_nsgtf_5.png

filters + dual filters (Wavelet)

This figure shows the filter functions used in the Wavelet filterbank and the corresponding canonical dual filters.
demo_nsgtf_6.png

Wavelet spectrogram (absolute value of coefficients in dB)

This figure shows a (color coded) image of the Wavelet coefficient modulus.

This code produces the following output:

Relative error of constant-Q reconstruction (should be close to zero.): 6.435922e-16
Relative error of ERBlet reconstruction (should be close to zero.): 5.597245e-16
Relative error of Wavelet reconstruction (should be close to zero.): 5.137871e-16