From 85d3fe3233cee889a9c2593d48ba1dea12d4a7a8 Mon Sep 17 00:00:00 2001 From: mick grierson Date: Mon, 19 Dec 2016 22:56:37 +0000 Subject: refactored, tested, bugfixed the new javascript samplerate-based envelopes. Should be good now... --- maximilian.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'maximilian.h') diff --git a/maximilian.h b/maximilian.h index 54dec4b..2e8593d 100755 --- a/maximilian.h +++ b/maximilian.h @@ -124,14 +124,14 @@ class maxiEnvelope { int isPlaying; public: - int trigger; + int trig; double line(int numberofsegments,double segments[100]); double ramp(double startVal=0, double endVal=1, double duration=1); double ramps(std::vector rampsArray); double ar(double attack=0.1, double release=0.1); double adsr(double attack=0.1, double decay=0.1, double sustain=0.1, double release=0.1); -// void trigger(int index,double amp); - void note(bool noteOn=false); + void trigger(int index,double amp); + void trigger(bool noteOn=false); int valindex; double amplitude; -- cgit v1.3