Added missing Twang::setLoopFilter() and ModalBar::setModulationDepth() functions.

This commit is contained in:
Gary Scavone
2022-04-22 16:28:12 -04:00
parent f3ce5f4d04
commit 3acb9502ae
3 changed files with 15 additions and 1 deletions

View File

@@ -83,6 +83,15 @@ void ModalBar :: setStrikePosition( StkFloat position )
this->setModeGain(2, 0.11 * temp);
}
void ModalBar :: setModulationDepth( StkFloat mDepth )
{
if ( mDepth < 0.0 || mDepth > 1.0 ) {
oStream_ << "ModalBar::setModulationDepth: parameter is out of range!";
handleError( StkError::WARNING ); return;
}
vibratoGain_ = mDepth * 0.3;
}
void ModalBar :: setPreset( int preset )
{
// Presets: