From 65fe359eb034d8e4a4a7f4d673af6f473ef27ff8 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 9 Jan 2011 13:06:58 +0100 Subject: envelope_update_frames can now be set via CLI and config file --- synth/load.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'synth/load.cpp') diff --git a/synth/load.cpp b/synth/load.cpp index d88ec3e..9b80106 100644 --- a/synth/load.cpp +++ b/synth/load.cpp @@ -176,6 +176,13 @@ void read_config(const char *cfg, bool complain=true) else output_verbose("NOTE: ignoring value for filter_update_freq, another setting overrides this."); } + else if ((var=="envelope_update_freq") || (var=="env_update_freq")) + { + if (envelope_update_freq_hz==0) + envelope_update_freq_hz=valf; + else + output_verbose("NOTE: ignoring value for envelope_update_freq, another setting overrides this."); + } else output_warning("WARNING: unknown variable '"+var+"'. ignoring it..."); } -- cgit v1.2.3