aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-07-04 20:58:34 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-07-04 20:58:34 +0200
commita15d9b6560519a6c858c3f554c4dd5ab60485799 (patch)
treec20865689d343906e636d92721e67b3c884c479d /include
parent9f10e8391528ad120f1f31595528b6004637d9ce (diff)
downloadsynthpod-a15d9b6560519a6c858c3f554c4dd5ab60485799.tar.xz
prototype OSC automation.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index c9776745..1b9adaee 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -50,6 +50,8 @@
#include <zero_worker.h>
#include <lv2_external_ui.h> // kxstudio kx-ui extension
+#include <osc.lv2/osc.h>
+
typedef enum _port_type_t port_type_t;
typedef enum _port_atom_type_t port_atom_type_t;
typedef enum _port_buffer_type_t port_buffer_type_t;
@@ -145,6 +147,11 @@ struct _reg_t {
} port;
struct {
+ reg_item_t message;
+ reg_item_t path;
+ } osc;
+
+ struct {
reg_item_t property;
} parameter;
@@ -427,7 +434,7 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->port.sequence, world, map, LV2_ATOM__Sequence);
_register(&regs->port.midi, world, map, LV2_MIDI__MidiEvent);
- _register(&regs->port.osc_event, world, map, "http://open-music-kontrollers.ch/lv2/osc#Event");
+ _register(&regs->port.osc_event, world, map, LV2_OSC__Event);
_register(&regs->port.time_position, world, map, LV2_TIME__Position);
_register(&regs->port.integer, world, map, LV2_CORE__integer);
@@ -447,6 +454,9 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->parameter.property, world, map, LV2_CORE_PREFIX"parameterProperty");
+ _register(&regs->osc.message, world, map, LV2_OSC__Message);
+ _register(&regs->osc.path, world, map, LV2_OSC__messagePath);
+
_register(&regs->work.schedule, world, map, LV2_WORKER__schedule);
_register(&regs->zero.schedule, world, map, ZERO_WORKER__schedule);
@@ -693,6 +703,9 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->parameter.property);
+ _unregister(&regs->osc.message);
+ _unregister(&regs->osc.path);
+
_unregister(&regs->work.schedule);
_unregister(&regs->zero.schedule);