STFT& STFT::sizeHop(unsigned size){ mSlide.sizeHop(size); mSizeHop = mSlide.sizeHop(); computeInvWinMul(); onDomainChange(1); return *this; }
STFT& STFT::sizeHop(uint32_t size){ mSlide.sizeHop(size); mSizeHop = mSlide.sizeHop(); computeInvWinMul(); onResync(1); return *this; }
void STFT::winType(WinType::type type){ tbl::window(mFwdWin, sizeWin(), type); mFwdWinMul = 1.f / arr::mean(mFwdWin, sizeWin()); // compute mul factor for normalization // scale forward window? //slice(mFwdWin, sizeWin()) *= mFwdWinMul; computeInvWinMul(); mWinType = type; }
STFT& STFT::windowType(WindowType v){ mWinType = v; tbl::window(mFwdWin, sizeWin(), mWinType); // compute forward normalization factor mFwdWinMul = 1.f / arr::mean(mFwdWin, sizeWin()); // scale forward window? //slice(mFwdWin, sizeWin()) *= mFwdWinMul; computeInvWinMul(); return *this; }
void STFT::sizeHop(uint32_t size){ mSlide.sizeHop(size); mSizeHop = mSlide.sizeHop(); computeInvWinMul(); onResync(1); }