gamma = pghi_findgamma({firwinname,gl})
gamma = pghi_findgamma(g,a,M)
gamma = pghi_findgamma(g,a,M,L)
[gamma, Cg] = pghi_findgamma(...)
| gnum | Window. |
| gl | Length of the support of the window. |
| gamma | Parameter for PGHI and RTPGHI |
| Cg | Window constant |
pghi_findgamma({firwinname,gl}) returns parameter gamma, for which the Gaussian window given as:
is closest to peak-normalized window firwinname from firwin. The parameter is precomputed so the search will not be done.
[gamma,Cg] = pghi_findgamma(...) additionaly returns parameter Cg which is window constant and is used to compute gamma such as:
where gl is the length of the window support.
Note that the relationship between gamma and tfr from pgauss is:
where L is the DGT length.
'search' Do the search even for precomputed windows.
Z. Průša and P. L. Søndergaard. Real-Time Spectrogram Inversion Using Phase Gradient Heap Integration. In Proc. Int. Conf. Digital Audio Effects (DAFx-16), Sep 2016.