summaryrefslogtreecommitdiff
path: root/synth/util.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-15 15:27:38 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-15 15:27:38 +0100
commit550497e9b09894a79c1c9888901bbbf4949a614b (patch)
tree22a1b1f5eac70051eb8336312569ad07c512cc82 /synth/util.cpp
parent9e3998bbaddf4eb6df8544497e42231137824998 (diff)
Added rudimentary support for freq-envelopes
todo: pfactor'ed amount todo: support for compiled notes plus some tiny bugfixes: - in Envelope (get_sustain now returns orig_sustain) - parser now uses isnum instead of isfloat where appropriate
Diffstat (limited to 'synth/util.cpp')
-rw-r--r--synth/util.cpp12
1 files changed, 12 insertions, 0 deletions
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;
}