Пример #1
0
STFT& STFT::sizeHop(unsigned size){
	mSlide.sizeHop(size);
	mSizeHop = mSlide.sizeHop();
	computeInvWinMul();
	onDomainChange(1);
	return *this;
}
Пример #2
0
STFT& STFT::sizeHop(uint32_t size){
	mSlide.sizeHop(size);
	mSizeHop = mSlide.sizeHop();
	computeInvWinMul();
	onResync(1);
	return *this;
}
Пример #3
0
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;
}
Пример #4
0
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;
}
Пример #5
0
void STFT::sizeHop(uint32_t size){
	mSlide.sizeHop(size);
	mSizeHop = mSlide.sizeHop();
	computeInvWinMul();
	onResync(1);
}