summaryrefslogtreecommitdiffstats
path: root/src/libs/client/OSCEngineSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/OSCEngineSender.cpp')
-rw-r--r--src/libs/client/OSCEngineSender.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libs/client/OSCEngineSender.cpp b/src/libs/client/OSCEngineSender.cpp
index 76b094a0..89939b6b 100644
--- a/src/libs/client/OSCEngineSender.cpp
+++ b/src/libs/client/OSCEngineSender.cpp
@@ -253,6 +253,33 @@ OSCEngineSender::clear_patch(const string& patch_path)
patch_path.c_str());
}
+
+void
+OSCEngineSender::set_polyphony(const string& patch_path, uint32_t poly)
+{
+ assert(_engine_addr);
+ lo_send(_engine_addr, "/ingen/set_polyphony", "isi",
+ next_id(),
+ patch_path.c_str(),
+ poly);
+}
+
+
+void
+OSCEngineSender::set_polyphonic(const string& path, bool poly)
+{
+ assert(_engine_addr);
+ if (poly) {
+ lo_send(_engine_addr, "/ingen/set_polyphony", "isT",
+ next_id(),
+ path.c_str());
+ } else {
+ lo_send(_engine_addr, "/ingen/set_polyphony", "isF",
+ next_id(),
+ path.c_str());
+ }
+}
+
void
OSCEngineSender::enable_patch(const string& patch_path)