From 216f7933c5b4b65f7f45d3c459ead10f160d124b 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/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'synth/main.cpp') diff --git a/synth/main.cpp b/synth/main.cpp index 56c47b9..646e371 100644 --- a/synth/main.cpp +++ b/synth/main.cpp @@ -42,6 +42,7 @@ int main(int argc, char** argv) if (max_port_time_sec<=0) max_port_time_sec=MAX_PORTAMENTO_TIME; if (filter_update_freq_hz<=0) filter_update_freq_hz=FILTER_UPDATE_FREQ_HZ; if (lfo_update_freq_hz<=0) lfo_update_freq_hz=LFO_UPDATE_FREQ_HZ; + if (envelope_update_freq_hz<=0) envelope_update_freq_hz=ENVELOPE_UPDATE_FREQ_HZ; if (xrun_n<=0) xrun_n=XRUN_N; if (xrun_time<=0) xrun_time=XRUN_TIME; @@ -63,9 +64,10 @@ int main(int argc, char** argv) filter_update_frames=samp_rate/filter_update_freq_hz; lfo_update_frames=samp_rate/lfo_update_freq_hz; + envelope_update_frames=samp_rate/envelope_update_freq_hz; if (filter_update_frames<1) filter_update_frames=1; if (lfo_update_frames<1) lfo_update_frames=1; - + if (envelope_update_frames<1) envelope_update_frames=1; int i,j; @@ -205,5 +207,6 @@ void dump_options() cout << "xrun n/time:\t\t"<