From d9d43096e4a9b72490ffa001db0e632b343e91a1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Apr 2012 22:42:23 +0000 Subject: Document how to serialise a MidiEvent to a string. --- lv2/lv2plug.in/ns/ext/midi/midi.ttl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lv2/lv2plug.in/ns/ext/midi') 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 @@ ; doap:release [ doap:revision "1.5" ; - doap:created "2012-02-19" ; + doap:created "2012-04-13" ; dcs:blame ; 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 """

A single raw MIDI message (i.e. a sequence of bytes).

@@ -181,6 +184,13 @@ restrictions to simplify handling:

Where messages are communicated, the writer is responsible for writing valid messages, and the reader may assume that all events are valid. + +

If a midi:MidiEvent is serialised to a string, the format should be +xsd:hexBinary, e.g. (in Turtle notation):

+ +
+[] eg:someEvent "901A01"^^midi:MidiEvent .
+
""" . midi:NoteOff -- cgit v1.2.1