aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext/midi
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-13 22:42:23 +0000
committerDavid Robillard <d@drobilla.net>2012-04-13 22:42:23 +0000
commitd9d43096e4a9b72490ffa001db0e632b343e91a1 (patch)
treeaafe237cff5993189c64ca25fdd5ccc4914cb58c /lv2/lv2plug.in/ns/ext/midi
parent67e33e0476479ea5add23aa704db73560e477ec7 (diff)
downloadlv2-d9d43096e4a9b72490ffa001db0e632b343e91a1.tar.xz
Document how to serialise a MidiEvent to a string.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/midi')
-rw-r--r--lv2/lv2plug.in/ns/ext/midi/midi.ttl14
1 files changed, 12 insertions, 2 deletions
diff --git a/lv2/lv2plug.in/ns/ext/midi/midi.ttl b/lv2/lv2plug.in/ns/ext/midi/midi.ttl
index 15f0f34..3e57437 100644
--- a/lv2/lv2plug.in/ns/ext/midi/midi.ttl
+++ b/lv2/lv2plug.in/ns/ext/midi/midi.ttl
@@ -23,12 +23,14 @@
<http://drobilla.net/drobilla#me> ;
doap:release [
doap:revision "1.5" ;
- doap:created "2012-02-19" ;
+ doap:created "2012-04-13" ;
dcs:blame <http://drobilla.net/drobilla#me> ;
dcs:changeset [
dcs:item [
rdfs:label "Add class definitions for various message types."
- ]
+ ] , [
+ rdfs:label "Document how to serialise a MidiEvent to a string."
+ ]
]
] , [
doap:revision "1.4" ;
@@ -159,6 +161,7 @@ midi:MidiEvent
rdfs:label "MIDI message." ;
rdfs:subClassOf ev:Event ,
atom:Atom ;
+ atom:stringType xsd:hexBinary ;
lv2:documentation """
<p>A single raw MIDI message (i.e. a sequence of bytes).</p>
@@ -181,6 +184,13 @@ restrictions to simplify handling:</p>
Where messages are communicated, the writer is responsible for writing valid
messages, and the reader may assume that all events are valid.</li>
</ul>
+
+<p>If a midi:MidiEvent is serialised to a string, the format should be
+xsd:hexBinary, e.g. (in Turtle notation):</p>
+
+<pre class="turtle-code">
+[] eg:someEvent "901A01"^^midi:MidiEvent .
+</pre>
""" .
midi:NoteOff