From 105932305adf830ec8116827761a8a8c8aff4523 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 12 Jan 2011 12:06:35 +0100 Subject: Non-releasing Envelopes now work --- synth/parser.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'synth/parser.cpp') diff --git a/synth/parser.cpp b/synth/parser.cpp index 5da2175..10accac 100644 --- a/synth/parser.cpp +++ b/synth/parser.cpp @@ -594,7 +594,24 @@ program_t parse(string fn) } } - + + bool neverending_tone=false; + + for (map< parameter_t, list >::iterator it=formula.begin(); it!=formula.end(); it++) + if ((it->first.par==OUTPUT) && (env[it->first.osc].release<0)) + neverending_tone=true; + + for (int i=0;i