From 67025394dcbc2d0917c89856c40be3b9198eca5e Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sat, 15 Jan 2011 18:13:48 +0100 Subject: Implemented freq-envelopes for non-compiled notes plus some tiny bugfixes: - in Envelope (get_sustain now returns orig_sustain) - parser now uses isnum instead of isfloat where appropriate --- synth/util.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'synth/util.cpp') diff --git a/synth/util.cpp b/synth/util.cpp index 2862fdb..c54f2d5 100644 --- a/synth/util.cpp +++ b/synth/util.cpp @@ -171,6 +171,18 @@ parameter_enum param_to_enum(string param) return FILTER_TREM_LFO; else if (param=="sync_factor") return SYNC_FACTOR; + else if (param=="freq.env_amount") + return FREQ_ENV_AMOUNT; + else if (param=="freq.attack") + return FREQ_ATTACK; + else if (param=="freq.decay") + return FREQ_DECAY; + else if (param=="freq.sustain") + return FREQ_SUSTAIN; + else if (param=="freq.release") + return FREQ_RELEASE; + else if (param=="freq.hold") + return FREQ_HOLD; else return UNKNOWN; } -- cgit v1.2.3