View source: R/invertSpectrogram.R

guessPhase_GL | R Documentation |

Internal soundgen function

guessPhase_GL( spec, phase, nIter, samplingRate, overlap, wn, step_points, verbose = TRUE, plotError = TRUE )

`spec` |
the spectrogram that is to be transform to a time series: numeric matrix with frequency bins in rows and time frames in columns |

`phase` |
an initial guess at the phase: numeric matrix of the same dimensions as spec |

`nIter` |
the number of iterations of the GL algorithm (Griffin & Lim, 1984), 0 = don't run |

`samplingRate` |
sampling rate of |

`overlap` |
overlap between successive FFT frames, % |

`wn` |
window type accepted by |

`step_points` |
STFT step in points |

`verbose` |
if TRUE, prints estimated time left every 10% of GL iterations |

`plotError` |
if TRUE, produces a scree plot of squared error over GL iterations (useful for choosing 'nIter') |

Uses the iterative method proposed by Griffin & Lim (1984) to guess the phase of a magnitude spectrogram.

Returns a matrix of the same dimensions as 'spec' containing the guessed phase.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.