Skip to content

Commit 2891d4c

Browse files
author
mars
committed
Merge branch 'master' of github.com:pingdynasty/OwlProgram
2 parents a70a49a + fb9b8c1 commit 2891d4c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

TestPatches/PitchDetectorTestPatch.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ class PitchDetectorTestPatch : public Patch {
5858
phase -= 2.0 * M_PI;
5959
if(phase > 4.0*M_PI)
6060
phase=0;
61-
envelope=0.001*envelope + pastEnvelope*0.999;
61+
envelope=0.1*envelope + pastEnvelope*0.9;
6262
pastEnvelope=envelope;
6363
fa[n]+=sin(phase)*mix*envelope;
6464
}
65-
fa.multiply(getParameterValue(PARAMETER_D));
65+
fa.multiply(getParameterValue(PARAMETER_D)*10);
66+
fa.copyTo(buffer.getSamples(1));
6667
float *coeffs=zcc.getFilter()->getFilterStage(0).getCoefficients();
6768
debugMessage("estimated envelope: ", estimated, envelope);
6869
// debugMessage("coeffs: ", coeffs[3], coeffs[4], coeffs[2] );

0 commit comments

Comments
 (0)