From 527e7400f227703b9f0932b685f2bf7f2c2c005b Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 16 Jan 2011 15:23:13 +0100 Subject: In-synth-cli can now change snh-freq --- synth/in_synth_cli.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'synth/in_synth_cli.cpp') diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp index 510d93d..7bf1fda 100644 --- a/synth/in_synth_cli.cpp +++ b/synth/in_synth_cli.cpp @@ -508,6 +508,22 @@ void do_in_synth_cli() cout << "error: lfo-number must be one of 0.."<=0) + { + snh_freq_hz=freq; + init_snh(); //no uninit neccessary, as this only calculates an integer + } + else + cout << "error: sample-and-hold-frequency must be greater than zero"<