aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian_examples/14.monosynth.cpp
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@strangebook.lan>2011-10-10 00:34:25 +0100
committerMick Grierson <mickgrierson@strangebook.lan>2011-10-10 00:34:25 +0100
commitf031cab18f10cb7778187418cf617e4a27804eb7 (patch)
tree36639394dee6edec4a6f70b2d250e1ec16e00c69 /maximilian_examples/14.monosynth.cpp
parent2ba7a5056011da98c04fe33b5ee4b74d3a35da8c (diff)
added polysynth example and fixed ticking error
Diffstat (limited to 'maximilian_examples/14.monosynth.cpp')
-rwxr-xr-xmaximilian_examples/14.monosynth.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/maximilian_examples/14.monosynth.cpp b/maximilian_examples/14.monosynth.cpp
index cd9cd46..5dd4e7e 100755
--- a/maximilian_examples/14.monosynth.cpp
+++ b/maximilian_examples/14.monosynth.cpp
@@ -36,9 +36,9 @@ void play(double *output) {
ADSR.trigger(0, adsrEnv[0]);//trigger the envelope from the start
- cout << "tick\n";//ticking twice for some reason
+ cout << "tick\n";//the clock ticks
- lastCount=currentCount;//set the last count to the current count
+ lastCount=0;//set lastCount to 0
}
//and this is where we build the synth