aboutsummaryrefslogtreecommitdiffstats
path: root/lv2
diff options
context:
space:
mode:
Diffstat (limited to 'lv2')
-rw-r--r--lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl2
-rw-r--r--lv2/lv2plug.in/ns/ext/midi/midi.ttl18
2 files changed, 15 insertions, 5 deletions
diff --git a/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl b/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl
index 4e2121f..a7f039c 100644
--- a/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl
+++ b/lv2/lv2plug.in/ns/ext/midi/lv2-midi.doap.ttl
@@ -23,6 +23,8 @@
] , [
rdfs:label "Add midi:binding and midi:channel predicates."
] , [
+ rdfs:label "Add midi:HexByte datatype for status bytes and masks."
+ ] , [
rdfs:label "Remove non-standard midi:Tick message type."
] , [
rdfs:label "Add C definitions for message types and standard controllers."
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)." .