mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Added missing Twang::setLoopFilter() and ModalBar::setModulationDepth() functions.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -90,6 +90,11 @@ void Twang :: setLoopGain( StkFloat loopGain )
|
||||
loopFilter_.setGain( gain );
|
||||
}
|
||||
|
||||
void Twang :: setLoopFilter( std::vector<StkFloat> coefficients )
|
||||
{
|
||||
loopFilter_.setCoefficients( coefficients, true );
|
||||
}
|
||||
|
||||
void Twang :: setPluckPosition( StkFloat position )
|
||||
{
|
||||
if ( position < 0.0 || position > 1.0 ) {
|
||||
|
||||
Reference in New Issue
Block a user