From: Paul Brossier Date: Fri, 26 Oct 2018 18:02:51 +0000 (+0200) Subject: [pvoc] add missing aubio_pvoc_get_hop/win X-Git-Tag: 0.4.8~92^2~16^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=e302bb4be0e1dc25e7186786ba48ef34897e1cb7;p=aubio.git [pvoc] add missing aubio_pvoc_get_hop/win --- diff --git a/src/spectral/phasevoc.c b/src/spectral/phasevoc.c index f1ec77e1..05ebdb06 100644 --- a/src/spectral/phasevoc.c +++ b/src/spectral/phasevoc.c @@ -212,3 +212,13 @@ static void aubio_pvoc_addsynth(aubio_pvoc_t *pv, fvec_t *synth_new) for (i = 0; i < pv->end; i++) synthold[i] += synth[i + pv->hop_s] * pv->scale; } + +uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv) +{ + return pv->win_s; +} + +uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv) +{ + return pv->hop_s; +} diff --git a/src/spectral/phasevoc.h b/src/spectral/phasevoc.h index b98402ed..e3caf2de 100644 --- a/src/spectral/phasevoc.h +++ b/src/spectral/phasevoc.h @@ -88,6 +88,7 @@ void aubio_pvoc_rdo(aubio_pvoc_t *pv, cvec_t * fftgrain, fvec_t *out); */ uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv); + /** get hop size \param pv phase vocoder to get the hop size from