mirror of
https://github.com/thestk/stk
synced 2026-01-13 21:11:53 +00:00
Version 4.4.4
This commit is contained in:
committed by
Stephen Sinclair
parent
0aec39260a
commit
fc877b87bf
@@ -17,7 +17,7 @@
|
||||
use possibly subject to patents held by Stanford
|
||||
University, Yamaha, and others.
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995-2011.
|
||||
by Perry R. Cook and Gary P. Scavone, 1995-2012.
|
||||
*/
|
||||
/***************************************************/
|
||||
|
||||
@@ -37,23 +37,17 @@ Twang :: Twang( StkFloat lowestFrequency )
|
||||
std::vector<StkFloat> coefficients( 2, 0.5 );
|
||||
loopFilter_.setCoefficients( coefficients );
|
||||
|
||||
lastFrame_.resize( 1, 1, 0.0 );
|
||||
|
||||
loopGain_ = 0.995;
|
||||
pluckPosition_ = 0.4;
|
||||
this->setFrequency( 220.0 );
|
||||
}
|
||||
|
||||
Twang :: ~Twang( void )
|
||||
{
|
||||
}
|
||||
|
||||
void Twang :: clear( void )
|
||||
{
|
||||
delayLine_.clear();
|
||||
combDelay_.clear();
|
||||
loopFilter_.clear();
|
||||
lastFrame_[0] = 0.0;
|
||||
lastOutput_ = 0.0;
|
||||
}
|
||||
|
||||
void Twang :: setLowestFrequency( StkFloat frequency )
|
||||
|
||||
Reference in New Issue
Block a user