Monstro: use phase delta instead of frequency for deciding which wavetable to use

This commit is contained in:
Vesa
2014-04-08 09:48:43 +03:00
parent e10bbeb84e
commit 13237f9c8e
3 changed files with 44 additions and 6 deletions

View File

@@ -81,6 +81,12 @@ public:
{
return static_cast<float>( _sr ) / _f;
}
/*! \brief This method converts phase delta to wavelength. It assumes a phase scale of 0 to 1. */
static inline float pdToLen( float _pd )
{
return 1.0f / _pd;
}
/*! \brief This method provides interpolated samples of bandlimited waveforms.
* \param _ph The phase of the sample.