summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-11-17 18:00:36 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:25 -0500
commite9234c856a783ff3e585e1852852c72843d8ce7f (patch)
treecee77bff81a74cc4c57c840503b2338cd31a1ff9 /libs/pbd/pbd
parent47cf908998f51a89a2c2041af87e2675258ef888 (diff)
add syntax and scaffolding for MIDI binding maps to refer to selected tracks/busses.
THIS DOES NOT WORK YET. Selection information is not available in libardour at this time
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/controllable_descriptor.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/pbd/pbd/controllable_descriptor.h b/libs/pbd/pbd/controllable_descriptor.h
index e4366c86eb..b7eb26988e 100644
--- a/libs/pbd/pbd/controllable_descriptor.h
+++ b/libs/pbd/pbd/controllable_descriptor.h
@@ -31,7 +31,8 @@ class LIBPBD_API ControllableDescriptor {
public:
enum TopLevelType {
RemoteControlID,
- NamedRoute
+ NamedRoute,
+ SelectionCount,
};
enum SubType {
@@ -68,6 +69,7 @@ public:
SubType subtype() const { return _subtype; }
uint32_t rid() const;
+ uint32_t selection_id() const;
uint32_t target (uint32_t n) const;
bool banked() const { return _banked; }
@@ -77,7 +79,10 @@ private:
TopLevelType _top_level_type;
SubType _subtype;
std::string _top_level_name;
- uint32_t _rid;
+ union {
+ uint32_t _rid;
+ uint32_t _selection_id;
+ };
std::vector<uint32_t> _target;
uint32_t _banked;
uint32_t _bank_offset;