From d5a514148bec58cd7e97d032259362b2e19c0e95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Jan 2010 01:43:54 +0000 Subject: Magic MIDI binding via special ingen_control port. Always set lv2:minimum and lv2:maximum properties for control ports so they show up in properties dialog (and can be used for MIDI binding). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2391 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/HTTPEngineSender.cpp | 2 +- src/client/HTTPEngineSender.hpp | 2 +- src/client/OSCEngineSender.cpp | 6 +++--- src/client/OSCEngineSender.hpp | 2 +- src/client/PortModel.hpp | 3 +++ 5 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/client') diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp index abf5180e..ece89ca0 100644 --- a/src/client/HTTPEngineSender.cpp +++ b/src/client/HTTPEngineSender.cpp @@ -193,7 +193,7 @@ HTTPEngineSender::set_voice_value(const Path& port_path, void -HTTPEngineSender::midi_learn(const Path& node_path) +HTTPEngineSender::learn(const Path& path) { } diff --git a/src/client/HTTPEngineSender.hpp b/src/client/HTTPEngineSender.hpp index b2df7821..971793d5 100644 --- a/src/client/HTTPEngineSender.hpp +++ b/src/client/HTTPEngineSender.hpp @@ -108,7 +108,7 @@ public: uint32_t voice, const Raul::Atom& value); - virtual void midi_learn(const Raul::Path& node_path); + virtual void learn(const Raul::Path& path); // Requests // diff --git a/src/client/OSCEngineSender.cpp b/src/client/OSCEngineSender.cpp index 0e2b11ab..e7fc4078 100644 --- a/src/client/OSCEngineSender.cpp +++ b/src/client/OSCEngineSender.cpp @@ -238,11 +238,11 @@ OSCEngineSender::set_voice_value(const Path& port_path, void -OSCEngineSender::midi_learn(const Path& node_path) +OSCEngineSender::learn(const Path& path) { - send("/ingen/midi_learn", "is", + send("/ingen/learn", "is", next_id(), - node_path.c_str(), + path.c_str(), LO_ARGS_END); } diff --git a/src/client/OSCEngineSender.hpp b/src/client/OSCEngineSender.hpp index f43c3b18..8311cbb1 100644 --- a/src/client/OSCEngineSender.hpp +++ b/src/client/OSCEngineSender.hpp @@ -105,7 +105,7 @@ public: uint32_t voice, const Raul::Atom& value); - virtual void midi_learn(const Raul::Path& node_path); + virtual void learn(const Raul::Path& path); // Requests // diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp index dbf82f1a..74b15283 100644 --- a/src/client/PortModel.hpp +++ b/src/client/PortModel.hpp @@ -26,6 +26,9 @@ #include "interface/Port.hpp" #include "ObjectModel.hpp" +#include + + namespace Raul { class Path; } namespace Ingen { -- cgit v1.2.1