aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian.cpp
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@strangebook.lan>2011-10-09 22:55:46 +0100
committerMick Grierson <mickgrierson@strangebook.lan>2011-10-09 22:55:46 +0100
commitd20f58d7186794f6621bca8017c64ba50ace655e (patch)
treeaefbde8dc9859f9ffbe5089f7c317cc0d8e4aa52 /maximilian.cpp
parent07f9f87431de192ca0741b5cb34b3ad297bbaff7 (diff)
made a small change to maxiEnvelope.
Diffstat (limited to 'maximilian.cpp')
-rw-r--r--maximilian.cpp4
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;