diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-09 22:55:46 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-09 22:55:46 +0100 |
| commit | d20f58d7186794f6621bca8017c64ba50ace655e (patch) | |
| tree | aefbde8dc9859f9ffbe5089f7c317cc0d8e4aa52 | |
| parent | 07f9f87431de192ca0741b5cb34b3ad297bbaff7 (diff) | |
made a small change to maxiEnvelope.
| -rw-r--r-- | maximilian.cpp | 4 |
1 files 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; |
