aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/fftease/src/thresher~.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-02-24 03:37:12 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-02-24 03:37:12 +0000
commit65092b7f63e129a416a32f0e0071547fba86d6d5 (patch)
tree20b5eb70dd1b0d6697e819747a4fb33a9bd56324 /externals/grill/fftease/src/thresher~.cpp
parentb5a276390c40729a9c78d8d3e8ae19a8a2239660 (diff)
""
svn path=/trunk/; revision=1355
Diffstat (limited to 'externals/grill/fftease/src/thresher~.cpp')
-rw-r--r--externals/grill/fftease/src/thresher~.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/fftease/src/thresher~.cpp b/externals/grill/fftease/src/thresher~.cpp
index 29b042be..f8d16ab0 100644
--- a/externals/grill/fftease/src/thresher~.cpp
+++ b/externals/grill/fftease/src/thresher~.cpp
@@ -49,8 +49,8 @@ void thresher::Set()
{
fftease::Set();
- const F _R = Samplerate();
- const I _D = Blocksize(),_N = get_N(),_N2 = _N/2;
+ const F rate = Samplerate();
+ const I n = Blocksize(),_N = get_N(),_N2 = _N/2;
_compositeFrame = new F[_N+2];
_framesLeft = new I[_N2+1];
@@ -58,7 +58,7 @@ void thresher::Set()
_firstFrame = true;
_moveThreshold = .00001 ;
F _maxHoldTime = 5.0 ;
- _maxHoldFrames = (I)(_maxHoldTime *_R/_D);
+ _maxHoldFrames = (I)(_maxHoldTime *rate/n);
}
void thresher::Clear()