fvec_set_window method

int fvec_set_window(
  1. Pointer<fvec_t> window,
  2. Pointer<char_t> window_type
)

set elements of a vector to window coefficients

\param window exsting ::fvec_t to use \param window_type type of the window to create

List of available window types: "rectangle", "hamming", "hanning", "hanningz", "blackman", "blackman_harris", "gaussian", "welch", "parzen", "default".

"default" is equivalent to "hanningz".

References:

  • Window function on Wikipedia
  • Amalia de Götzen, Nicolas Bernardini, and Daniel Arfib. Traditional (?) implementations of a phase vocoder: the tricks of the trade. In Proceedings of the International Conference on Digital Audio Effects (DAFx-00), pages 37–44, Uni- versity of Verona, Italy, 2000. ( pdf)

Implementation

int fvec_set_window(
  ffi.Pointer<fvec_t> window,
  ffi.Pointer<char_t> window_type,
) {
  return _fvec_set_window(
    window,
    window_type,
  );
}