diff options
author | David Robillard <d@drobilla.net> | 2007-09-19 23:54:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-19 23:54:39 +0000 |
commit | ad558bdafde7e40b5de79b47d8586aec53cf3f7e (patch) | |
tree | a4431ddd696eb66eceb3119a9f7da933f3585ea4 /src/libs/client/Store.cpp | |
parent | 0b8415c61e321d032d62b5b1cbda65bab6f178d7 (diff) | |
download | ingen-ad558bdafde7e40b5de79b47d8586aec53cf3f7e.tar.gz ingen-ad558bdafde7e40b5de79b47d8586aec53cf3f7e.tar.bz2 ingen-ad558bdafde7e40b5de79b47d8586aec53cf3f7e.zip |
Toggling of individual node polyphonic state.
git-svn-id: http://svn.drobilla.net/lad/ingen@733 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r-- | src/libs/client/Store.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 84528d00..1ca94cce 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -42,6 +42,7 @@ Store::Store(SharedPtr<EngineInterface> engine, SharedPtr<SigClientInterface> em emitter->new_patch_sig.connect(sigc::mem_fun(this, &Store::new_patch_event)); emitter->new_node_sig.connect(sigc::mem_fun(this, &Store::new_node_event)); emitter->new_port_sig.connect(sigc::mem_fun(this, &Store::new_port_event)); + emitter->polyphonic_sig.connect(sigc::mem_fun(this, &Store::polyphonic_event)); emitter->patch_enabled_sig.connect(sigc::mem_fun(this, &Store::patch_enabled_event)); emitter->patch_disabled_sig.connect(sigc::mem_fun(this, &Store::patch_disabled_event)); emitter->patch_polyphony_sig.connect(sigc::mem_fun(this, &Store::patch_polyphony_event)); @@ -434,6 +435,15 @@ Store::new_port_event(const Path& path, const string& type, bool is_output) resolve_connection_orphans(p); } + +void +Store::polyphonic_event(const Path& path, bool polyphonic) +{ + SharedPtr<ObjectModel> object = this->object(path); + if (object) + object->set_polyphonic(polyphonic); +} + void Store::patch_enabled_event(const Path& path) |