diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-12 17:57:48 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-12 17:57:48 +0100 |
commit | a43a4e27a2ba3c34bac5a215ce49175b22913bd4 (patch) | |
tree | f8f7848b45ae6977e71617a5403b43747515093f /synth/channel.cpp | |
parent | 08fc0a38a7ed8553157043337a8c680f37694596 (diff) |
Extended in-synth-cli
Many commands are now available, like changing program, controllers,
panicking, killing single programs, setting pedals, setting voice limit
etc...
Also, added Channel::set_portamento_time_sec(float sec)
Diffstat (limited to 'synth/channel.cpp')
-rw-r--r-- | synth/channel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synth/channel.cpp b/synth/channel.cpp index 8ff615e..c2d0793 100644 --- a/synth/channel.cpp +++ b/synth/channel.cpp @@ -345,7 +345,12 @@ void Channel::set_portamento(int val) void Channel::set_portamento_time(int val) { - portamento_frames2=samp_rate*val*max_port_time_sec/128; + set_portamento_time_sec(val*max_port_time_sec/128.0); +} + +void Channel::set_portamento_time_sec(float val) +{ + portamento_frames2=samp_rate*val; if (do_portamento) set_real_portamento_frames(); } |