aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext/midi/midi.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-09-09 03:48:57 +0000
committerDavid Robillard <d@drobilla.net>2012-09-09 03:48:57 +0000
commit32d8a611c09b5a0f282e34ef89e8529e59e128e1 (patch)
tree357db659b1ce7936c7744d2bf440c9d2cb12e750 /lv2/lv2plug.in/ns/ext/midi/midi.ttl
parentd322a83d8f39dd1464ca5bd595eb1729818e7004 (diff)
downloadlv2-32d8a611c09b5a0f282e34ef89e8529e59e128e1.tar.xz
Add midi:HexByte datatype for status bytes and masks.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/midi/midi.ttl')
-rw-r--r--lv2/lv2plug.in/ns/ext/midi/midi.ttl18
1 files changed, 13 insertions, 5 deletions
diff --git a/lv2/lv2plug.in/ns/ext/midi/midi.ttl b/lv2/lv2plug.in/ns/ext/midi/midi.ttl
index faddc36..e35d3e3 100644
--- a/lv2/lv2plug.in/ns/ext/midi/midi.ttl
+++ b/lv2/lv2plug.in/ns/ext/midi/midi.ttl
@@ -98,6 +98,16 @@ midi:Controller
midi:property midi:controllerValue
] .
+midi:HexByte
+ a rdfs:Datatype ;
+ owl:onDatatype xsd:hexBinary ;
+ owl:withRestrictions (
+ [
+ xsd:maxInclusive "FF"
+ ]
+ ) ;
+ rdfs:comment "A hexadecimal byte, which is a xsd:hexBinary value <= FF" .
+
midi:MidiEvent
a rdfs:Class ;
rdfs:label "MIDI Message" ;
@@ -352,16 +362,14 @@ midi:status
a rdf:Property ,
owl:DatatypeProperty ,
owl:FunctionalProperty ;
- rdfs:range xsd:byte ,
- xsd:hexBinary ;
+ rdfs:range midi:HexByte ;
rdfs:comment "The exact status byte for a message of this type." .
midi:statusMask
a rdf:Property ,
owl:DatatypeProperty ,
owl:FunctionalProperty ;
- rdfs:range xsd:byte ,
- xsd:hexBinary ;
+ rdfs:range midi:HexByte ;
rdfs:comment """
The status byte for a message of this type on channel 1, i.e. a status byte
with the lower nibble set to zero.""" .
@@ -370,5 +378,5 @@ midi:velocity
a rdf:Property ,
owl:DatatypeProperty ,
owl:FunctionalProperty ;
- rdfs:range xsd:byte ;
+ rdfs:range midi:HexByte ;
rdfs:comment "The velocity of a note message (0 to 127)." .