diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-10 20:39:51 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-11 14:24:49 +0100 |
commit | db04e2fb861ed7ccef5a7339e9860ca5c2590a7c (patch) | |
tree | 4f2e2efe0f403981ae0d2ad47319dd1e253182f0 /synth/channel.cpp | |
parent | e32591388a18c8226e61b8f88b031ed7c88ca153 (diff) |
In-synth-cli can now (re)load programs. maybe SEGFAULTING?
Diffstat (limited to 'synth/channel.cpp')
-rw-r--r-- | synth/channel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synth/channel.cpp b/synth/channel.cpp index dbfcc48..61ea6de 100644 --- a/synth/channel.cpp +++ b/synth/channel.cpp @@ -435,6 +435,12 @@ void Channel::kill_program(int prog) it++; } +void Channel::maybe_reload_program(int prog) +{ + if (program==prog) + curr_prg=program_settings[prog]; +} + void Channel::release_all() { list<NoteSkel*>::iterator it; |