separateLeadFunctions.py
This module provides functions that are useful for the SeparateLeadStereo modules, essentially time-frequency transformations (and inverse), as well as generation of dictionary matrices.
See each function docstring for more information.
TODO: expend this? TODO: move all these functions in different modules, in pyfasst.tools for instance
Copyright (C) 2011-2013 Jean-Louis Durrieu
Generates a collection of Hann functions, spaced across the frequency axis, as desired by the user (and if implemented), targetting the given number of basis and adapting the extent (or bandwidth) of each function (over the frequencies) to that number and according to the desired overlap between these windows.
generateODGDspec:
generates a waveform ODGD and the corresponding spectrum, using as analysis window the -optional- window given as argument.
generateODGDspecChirped:
generates a waveform ODGD and the corresponding spectrum, using as analysis window the -optional- window given as argument.
generateODGDspec:
generates a waveform ODGD and the corresponding spectrum, using as analysis window the -optional- window given as argument.
Generates a ‘basis’ matrix for the source part WF0, using the source model KLGLOTT88, with the following I/O arguments:
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|
20120828T2358 Horribly slow...
F0Table, WF0 = generate_WF0_MinCQT_chirped(minF0, maxF0, Fs, Nfft=2048,
stepNotes=4, lengthWindow=2048,
Ot=0.5, perF0=2,
depthChirpInSemiTone=0.5)
Generates a ‘basis’ matrix for the source part WF0, using the source model KLGLOTT88, with the following I/O arguments:
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|
20120828T2358 Horribly slow...
Generates a ‘basis’ matrix for the source part WF0, using the source model KLGLOTT88, with the following I/O arguments:
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|
Notes: 20120828T2358 Horribly slow...
Generates a ‘basis’ matrix for the source part WF0, using the source model KLGLOTT88, with the following I/O arguments:
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|
Computes an inverse of the short time Fourier transform (STFT), here, the overlap-add procedure is implemented.
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|
Computes the short time Fourier transform (STFT) of data.
Inputs:
Parameters: |
|
---|
Outputs:
Returns: |
|
---|