From d20f58d7186794f6621bca8017c64ba50ace655e Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Sun, 9 Oct 2011 22:55:46 +0100 Subject: made a small change to maxiEnvelope. --- maximilian.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maximilian.cpp b/maximilian.cpp index b02b575..3b4d660 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -177,7 +177,7 @@ double maxiOsc::triangle(double frequency, double phase) { //I like this. double maxiEnvelope::line(int numberofsegments,double segments[1000]) { - if (isPlaying==1) { + if (isPlaying==1) {//only make a sound once you've been triggered period=2./(segments[valindex+1]*0.004); nextval=segments[valindex+2]; @@ -204,7 +204,7 @@ double maxiEnvelope::line(int numberofsegments,double segments[1000]) { //and this void maxiEnvelope::trigger(int index, double amp) { - isPlaying=1; + isPlaying=1;//ok the envelope is being used now. valindex=index; amplitude=amp; -- cgit v1.3