aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/ns/ext/osc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-21 01:36:00 +0000
committerDavid Robillard <d@drobilla.net>2011-11-21 01:36:00 +0000
commiteb43c8896480114b224755e824fae2e2f7485256 (patch)
tree26e91bd8dc6421d2296a33991e90f7dcb546b079 /lv2/ns/ext/osc
parentdf79255ccef7fb5d091e9d4e52f3c46545b53282 (diff)
downloadlv2-eb43c8896480114b224755e824fae2e2f7485256.tar.xz
Move ns to lv2/ns so repository top level can be used as an include dir directly.
Diffstat (limited to 'lv2/ns/ext/osc')
l---------lv2/ns/ext/osc/ext.pc.in1
-rw-r--r--lv2/ns/ext/osc/lv2_osc.c238
-rw-r--r--lv2/ns/ext/osc/lv2_osc_print.c66
-rw-r--r--lv2/ns/ext/osc/lv2_osc_test.c55
-rw-r--r--lv2/ns/ext/osc/manifest.ttl9
-rw-r--r--lv2/ns/ext/osc/osc-print.h42
-rw-r--r--lv2/ns/ext/osc/osc.h119
-rw-r--r--lv2/ns/ext/osc/osc.ttl39
l---------lv2/ns/ext/osc/waf1
l---------lv2/ns/ext/osc/wscript1
10 files changed, 571 insertions, 0 deletions
diff --git a/lv2/ns/ext/osc/ext.pc.in b/lv2/ns/ext/osc/ext.pc.in
new file mode 120000
index 0000000..82b50df
--- /dev/null
+++ b/lv2/ns/ext/osc/ext.pc.in
@@ -0,0 +1 @@
+../../../../ext.pc.in \ No newline at end of file
diff --git a/lv2/ns/ext/osc/lv2_osc.c b/lv2/ns/ext/osc/lv2_osc.c
new file mode 100644
index 0000000..afea2c9
--- /dev/null
+++ b/lv2/ns/ext/osc/lv2_osc.c
@@ -0,0 +1,238 @@
+/* LV2 OSC Messages Extension
+ * Copyright (C) 2007-2009 David Robillard
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <errno.h>
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "lv2_osc.h"
+#include "lv2_osc_print.h"
+
+/*#ifndef BIG_ENDIAN
+ #ifndef LITTLE_ENDIAN
+ #warning This code requires BIG_ENDIAN or LITTLE_ENDIAN to be defined
+ #warning Assuming little endian. THIS MAY BREAK HORRIBLY!
+ #endif
+#endif*/
+
+#define lv2_osc_swap32(x) \
+({ \
+ uint32_t __x = (x); \
+ ((uint32_t)( \
+ (((uint32_t)(__x) & (uint32_t)0x000000ffUL) << 24) | \
+ (((uint32_t)(__x) & (uint32_t)0x0000ff00UL) << 8) | \
+ (((uint32_t)(__x) & (uint32_t)0x00ff0000UL) >> 8) | \
+ (((uint32_t)(__x) & (uint32_t)0xff000000UL) >> 24) )); \
+})
+
+#define lv2_osc_swap64(x) \
+({ \
+ uint64_t __x = (x); \
+ ((uint64_t)( \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000000000ffULL) << 56) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000ff000000ULL) << 8) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000ff00000000ULL) >> 8) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
+ (uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
+})
+
+
+/** Pad a size to a multiple of 32 bits */
+inline static uint32_t
+lv2_osc_pad_size(uint32_t size)
+{
+ return size + 3 - ((size-1) % 4);
+}
+
+
+inline static uint32_t
+lv2_osc_string_size(const char *s)
+{
+ return lv2_osc_pad_size((uint32_t)strlen(s) + 1);
+}
+
+
+static inline uint32_t
+lv2_osc_blob_size(const void* blob)
+{
+ return sizeof(uint32_t) + lv2_osc_pad_size(*((uint32_t*)blob));
+}
+
+
+uint32_t
+lv2_osc_arg_size(char type, const LV2_OSC_Argument* arg)
+{
+ switch (type) {
+ case 'c':
+ case 'i':
+ case 'f':
+ case 'S': // Symbol (URI-mapped integer)
+ return 4;
+
+ case 'h':
+ case 'd':
+ return 8;
+
+ case 's':
+ return lv2_osc_string_size(&arg->s);
+
+ case 'b':
+ return lv2_osc_blob_size(&arg->b);
+
+ default:
+ fprintf(stderr, "Warning: unknown OSC type '%c'.", type);
+ return 0;
+ }
+}
+
+
+void
+lv2_osc_argument_swap_byte_order(char type, LV2_OSC_Argument* arg)
+{
+ switch (type) {
+ case 'i':
+ case 'f':
+ case 'b':
+ case 'c':
+ *(int32_t*)arg = lv2_osc_swap32(*(int32_t*)arg);
+ break;
+
+ case 'h':
+ case 'd':
+ *(int64_t*)arg = lv2_osc_swap64(*(int64_t*)arg);
+ break;
+ }
+}
+
+
+/** Convert a message from network byte order to host byte order. */
+void
+lv2_osc_message_swap_byte_order(LV2_OSC_Event* msg)
+{
+ const char* const types = lv2_osc_get_types(msg);
+
+ for (uint32_t i=0; i < msg->argument_count; ++i)
+ lv2_osc_argument_swap_byte_order(types[i], lv2_osc_get_argument(msg, i));
+}
+
+
+/** Not realtime safe, returned value must be free()'d by caller. */
+LV2_OSC_Event*
+lv2_osc_message_new(const char* path, const char* types, ...)
+{
+ /* FIXME: path only */
+
+ LV2_OSC_Event* result = malloc(sizeof(LV2_OSC_Event)
+ + 4 + lv2_osc_string_size(path));
+
+ const uint32_t path_size = lv2_osc_string_size(path);
+ result->data_size = path_size + 4; // 4 for types
+ result->argument_count = 0;
+ result->types_offset = lv2_osc_string_size(path) + 1;
+ (&result->data)[result->types_offset - 1] = ',';
+ (&result->data)[result->types_offset] = '\0';
+
+ memcpy(&result->data, path, strlen(path) + 1);
+
+ return result;
+}
+
+
+/** Create a new LV2_OSC_Event from a raw OSC message.
+ *
+ * If \a out_buf is NULL, new memory will be allocated. Otherwise the returned
+ * value will be equal to buf, unless there is insufficient space in which
+ * case NULL is returned.
+ */
+LV2_OSC_Event*
+lv2_osc_message_from_raw(uint32_t out_buf_size,
+ void* out_buf,
+ uint32_t raw_msg_size,
+ void* raw_msg)
+{
+ const uint32_t message_header_size = (sizeof(uint32_t) * 4);
+
+ const uint32_t path_size = lv2_osc_string_size((char*)raw_msg);
+ const uint32_t types_len = strlen((char*)(raw_msg + path_size + 1));
+ uint32_t index_size = types_len * sizeof(uint32_t);
+
+ if (out_buf == NULL) {
+ out_buf_size = message_header_size + index_size + raw_msg_size;
+ out_buf = malloc((size_t)out_buf_size);
+ } else if (out_buf && out_buf_size < message_header_size + raw_msg_size) {
+ return NULL;
+ }
+
+ LV2_OSC_Event* write_loc = (LV2_OSC_Event*)(out_buf);
+ write_loc->argument_count = types_len;
+ write_loc->data_size = index_size + raw_msg_size;
+
+ // Copy raw message
+ memcpy(&write_loc->data + index_size, raw_msg, raw_msg_size);
+
+ write_loc->types_offset = index_size + path_size + 1;
+ const char* const types = lv2_osc_get_types(write_loc);
+
+ // Calculate/Write index
+ uint32_t args_base_offset = write_loc->types_offset + lv2_osc_string_size(types) - 1;
+ uint32_t arg_offset = 0;
+
+ for (uint32_t i=0; i < write_loc->argument_count; ++i) {
+ ((uint32_t*)&write_loc->data)[i] = args_base_offset + arg_offset;
+ const LV2_OSC_Argument* const arg = (LV2_OSC_Argument*)(&write_loc->data + args_base_offset + arg_offset);
+ // Special case because size is still big-endian
+#ifndef BIG_ENDIAN
+ if (types[i] == 'b') // special case because size is still big-endian
+ arg_offset += lv2_osc_swap32(*((int32_t*)arg));
+ else
+#endif
+ arg_offset += lv2_osc_arg_size(types[i], arg);
+ }
+
+ /*printf("Index:\n");
+ for (uint32_t i=0; i < write_loc->argument_count; ++i) {
+ printf("%u ", ((uint32_t*)&write_loc->data)[i]);
+ }
+ printf("\n");
+
+ printf("Data:\n");
+ for (uint32_t i=0; i < (write_loc->argument_count * 4) + size; ++i) {
+ printf("%3u", i % 10);
+ }
+ printf("\n");
+ for (uint32_t i=0; i < (write_loc->argument_count * 4) + size; ++i) {
+ char c = *(((char*)&write_loc->data) + i);
+ if (c >= 32 && c <= 126)
+ printf("%3c", c);
+ else
+ printf("%3d", (int)c);
+ }
+ printf("\n");*/
+
+ // Swap to host byte order if necessary
+#ifndef BIG_ENDIAN
+ lv2_osc_message_swap_byte_order(write_loc);
+#endif
+
+ printf("Created message:\n");
+ lv2_osc_message_print(write_loc);
+
+ return write_loc;
+}
diff --git a/lv2/ns/ext/osc/lv2_osc_print.c b/lv2/ns/ext/osc/lv2_osc_print.c
new file mode 100644
index 0000000..5282d46
--- /dev/null
+++ b/lv2/ns/ext/osc/lv2_osc_print.c
@@ -0,0 +1,66 @@
+/* LV2 OSC Messages Extension - Pretty printing methods
+ * Copyright (C) 2007-2009 David Robillard
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <stdio.h>
+#include "lv2_osc_print.h"
+
+void
+lv2_osc_argument_print(char type, const LV2_OSC_Argument* arg)
+{
+ int32_t blob_size;
+
+ switch (type) {
+ case 'c':
+ printf("%c", arg->c); break;
+ case 'i':
+ printf("%d", arg->i); break;
+ case 'f':
+ printf("%f", arg->f); break;
+ case 'h':
+ printf("%ld", arg->h); break;
+ case 'd':
+ printf("%f", arg->d); break;
+ case 's':
+ printf("\"%s\"", &arg->s); break;
+ /*case 'S':
+ printf("\"%s\"", &arg->S); break;*/
+ case 'b':
+ blob_size = *((int32_t*)arg);
+ printf("{ ");
+ for (int32_t i=0; i < blob_size; ++i)
+ printf("%X, ", (&arg->b)[i+4]);
+ printf(" }");
+ break;
+ default:
+ printf("?");
+ }
+}
+
+
+void
+lv2_osc_print(const LV2_OSC_Event* msg)
+{
+ const char* const types = lv2_osc_get_types(msg);
+
+ printf("%s (%s) ", lv2_osc_get_path(msg), types);
+ for (uint32_t i=0; i < msg->argument_count; ++i) {
+ lv2_osc_argument_print(types[i], lv2_osc_get_argument(msg, i));
+ printf(" ");
+ }
+ printf("\n");
+}
+
diff --git a/lv2/ns/ext/osc/lv2_osc_test.c b/lv2/ns/ext/osc/lv2_osc_test.c
new file mode 100644
index 0000000..3f76d41
--- /dev/null
+++ b/lv2/ns/ext/osc/lv2_osc_test.c
@@ -0,0 +1,55 @@
+#include <assert.h>
+#include <string.h>
+#include <stdio.h>
+#include <lo/lo.h>
+#include "lv2_osc.h"
+#include "lv2_osc_print.h"
+
+int
+main()
+{
+ lo_message lo_msg = lo_message_new();
+ //lo_message_add_symbol(lo_msg, "a_sym");
+ lo_message_add_string(lo_msg, "Hello World");
+ lo_message_add_char(lo_msg, 'a');
+ lo_message_add_int32(lo_msg, 1234);
+ lo_message_add_float(lo_msg, 0.1234);
+ lo_message_add_int64(lo_msg, 5678);
+ lo_message_add_double(lo_msg, 0.5678);
+
+
+ /*unsigned char blob_data[] = { 0,1,2,3,4,5,6,7,8,9 };
+ lo_blob blob = lo_blob_new(10, blob_data);
+ lo_message_add_blob(lo_msg, blob);*/
+
+ /* Leaks like a sieve */
+
+ size_t raw_msg_size = 0;
+ void* raw_msg = lo_message_serialise(lo_msg, "/foo/bar", NULL, &raw_msg_size);
+
+ LV2Message* msg = lv2_osc_message_from_raw(0.0, 0, NULL, raw_msg_size, raw_msg);
+ assert(msg);
+
+ LV2OSCBuffer* buf = lv2_osc_buffer_new(1024);
+
+ int ret = lv2_osc_buffer_append_message(buf, msg);
+ if (ret)
+ fprintf(stderr, "Message append failed: %s", strerror(ret));
+
+ lo_message lo_msg_2 = lo_message_new();
+ lo_message_add_string(lo_msg_2, "Another message");
+
+ raw_msg = lo_message_serialise(lo_msg_2, "/baz", NULL, &raw_msg_size);
+
+ msg = lv2_osc_message_from_raw(0.0, 0, NULL, raw_msg_size, raw_msg);
+ assert(msg);
+
+ ret = lv2_osc_buffer_append_message(buf, msg);
+ if (ret)
+ fprintf(stderr, "Message append failed: %s", strerror(ret));
+
+ printf("\nBuffer contents:\n\n");
+ lv2_osc_buffer_print(buf);
+
+ return 0;
+}
diff --git a/lv2/ns/ext/osc/manifest.ttl b/lv2/ns/ext/osc/manifest.ttl
new file mode 100644
index 0000000..7209b05
--- /dev/null
+++ b/lv2/ns/ext/osc/manifest.ttl
@@ -0,0 +1,9 @@
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+
+<http://lv2plug.in/ns/ext/osc>
+ a lv2:Specification ;
+ lv2:minorVersion 0 ;
+ lv2:microVersion 1 ;
+ rdfs:seeAlso <osc.ttl> .
+
diff --git a/lv2/ns/ext/osc/osc-print.h b/lv2/ns/ext/osc/osc-print.h
new file mode 100644
index 0000000..ceebbf7
--- /dev/null
+++ b/lv2/ns/ext/osc/osc-print.h
@@ -0,0 +1,42 @@
+/* LV2 OSC Messages Extension - Pretty printing methods
+ * Copyright (C) 2007-2009 David Robillard
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/** @file
+ * Helper functions for printing LV2 OSC messages as defined by the
+ * LV2 OSC extension <http://lv2plug.in/ns/ext/osc>.
+ */
+
+#ifndef LV2_OSC_PRINT_H
+#define LV2_OSC_PRINT_H
+
+#include "lv2/lv2plug.in/ns/ext/osc/osc.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void
+lv2_osc_argument_print(char type, const LV2_OSC_Argument* arg);
+
+void
+lv2_osc_message_print(const LV2_OSC_Event* msg);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* LV2_OSC_PRINT_H */
diff --git a/lv2/ns/ext/osc/osc.h b/lv2/ns/ext/osc/osc.h
new file mode 100644
index 0000000..05e39cc
--- /dev/null
+++ b/lv2/ns/ext/osc/osc.h
@@ -0,0 +1,119 @@
+/* LV2 OSC Messages Extension
+ * Copyright (C) 2007-2009 David Robillard <http://drobilla.net>
+ *
+ * This header is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This header is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef LV2_OSC_H
+#define LV2_OSC_H
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @file
+ * C header for the LV2 OSC extension <http://lv2plug.in/ns/ext/osc>.
+ * This extension defines a format for (raw) OSC messages/events.
+ */
+
+
+/** Argument (in a message).
+ *
+ * The name of the element in this union directly corresponds to the OSC
+ * type tag character in LV2_Event::types.
+ */
+typedef union {
+ /* Standard OSC types */
+ int32_t i; /**< 32 bit signed integer */
+ float f; /**< 32 bit IEEE-754 floating point number ("float") */
+ char s; /**< Standard C, NULL terminated string */
+ uint8_t b; /**< Blob (int32 size then size bytes padded to 32 bits) */
+
+ /* "Nonstandard" OSC types (defined in the OSC standard) */
+ int64_t h; /* 64 bit signed integer */
+ // t /* OSC-timetag */
+ double d; /* 64 bit IEEE 754 floating point number ("double") */
+ // S /* Symbol, represented as an OSC-string */
+ int32_t c; /* Character, represented as a 32-bit integer */
+ // r /* 32 bit RGBA color */
+ // m /* 4 byte MIDI message. Bytes from MSB to LSB are: port id, status byte, data1, data2 */
+ // T /* True. No bytes are allocated in the argument data. */
+ // F /* False. No bytes are allocated in the argument data. */
+ // N /* Nil. No bytes are allocated in the argument data. */
+ // I /* Infinitum. No bytes are allocated in the argument data. */
+ // [ /* The beginning of an array. */
+ // ] /* The end of an array. */
+} LV2_OSC_Argument;
+
+
+
+/** Message.
+ *
+ * This is an OSC message at heart, but with some additional cache information
+ * to allow fast access to parameters. This is the payload of an LV2_Event,
+ * time stamp and size (being generic) are in the containing header.
+ */
+typedef struct {
+ uint32_t data_size; /**< Total size of data, in bytes */
+ uint32_t argument_count; /**< Number of arguments in data */
+ uint32_t types_offset; /**< Offset of types string in data */
+
+ /** Take the address of this member to get a pointer to the remaining data.
+ *
+ * Contents are an argument index:
+ * uint32_t argument_index[argument_count]
+ *
+ * followed by a standard OSC message:
+ * char path[path_length] (padded OSC string)
+ * char types[argument_count] (padded OSC string)
+ * void data[data_size]
+ */
+ char data;
+
+} LV2_OSC_Event;
+
+LV2_OSC_Event* lv2_osc_event_new(const char* path, const char* types, ...);
+
+LV2_OSC_Event* lv2_osc_event_from_raw(uint32_t out_buf_size, void* out_buf,
+ uint32_t raw_msg_size, void* raw_msg);
+
+static inline uint32_t lv2_osc_get_osc_message_size(const LV2_OSC_Event* msg)
+ { return (msg->argument_count * sizeof(char) + 1) + msg->data_size; }
+
+static inline const void* lv2_osc_get_osc_message(const LV2_OSC_Event* msg)
+ { return (const void*)(&msg->data + (sizeof(uint32_t) * msg->argument_count)); }
+
+static inline const char* lv2_osc_get_path(const LV2_OSC_Event* msg)
+ { return (const char*)(&msg->data + (sizeof(uint32_t) * msg->argument_count)); }
+
+static inline const char* lv2_osc_get_types(const LV2_OSC_Event* msg)
+ { return (const char*)(&msg->data + msg->types_offset); }
+
+static inline LV2_OSC_Argument* lv2_osc_get_argument(const LV2_OSC_Event* msg, uint32_t i)
+ { return (LV2_OSC_Argument*)(&msg->data + ((uint32_t*)&msg->data)[i]); }
+
+/*
+int lv2_osc_buffer_append_message(LV2_Event_Buffer* buf, LV2_Event* msg);
+int lv2_osc_buffer_append(LV2_Event_Buffer* buf, double time, const char* path, const char* types, ...);
+void lv2_osc_buffer_compact(LV2_Event_Buffer* buf);
+*/
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* LV2_OSC_H */
diff --git a/lv2/ns/ext/osc/osc.ttl b/lv2/ns/ext/osc/osc.ttl
new file mode 100644
index 0000000..c83a69d
--- /dev/null
+++ b/lv2/ns/ext/osc/osc.ttl
@@ -0,0 +1,39 @@
+# LV2 OSC Messages Extension
+# Copyright (C) 2007 David Robillard <d@drobilla.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+
+@prefix osc: <http://lv2plug.in/ns/ext/osc#> .
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix doap: <http://usefulinc.com/ns/doap#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+<http://lv2plug.in/ns/ext/osc> a lv2:Specification ;
+ doap:license <http://usefulinc.com/doap/licenses/mit> ;
+ doap:name "LV2 OSC Events" ;
+ doap:shortdesc "A data type for raw OSC." ;
+ doap:maintainer [
+ a foaf:Person ;
+ foaf:name "David Robillard" ;
+ foaf:homepage <http://drobilla.net/> ;
+ rdfs:seeAlso <http://drobilla.net/drobilla.xrdf>
+ ] .
diff --git a/lv2/ns/ext/osc/waf b/lv2/ns/ext/osc/waf
new file mode 120000
index 0000000..b955110
--- /dev/null
+++ b/lv2/ns/ext/osc/waf
@@ -0,0 +1 @@
+../../../../waf \ No newline at end of file
diff --git a/lv2/ns/ext/osc/wscript b/lv2/ns/ext/osc/wscript
new file mode 120000
index 0000000..ec20a77
--- /dev/null
+++ b/lv2/ns/ext/osc/wscript
@@ -0,0 +1 @@
+../../../../ext.wscript \ No newline at end of file
50'>1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814