This file is indexed.

/usr/lib/lv2/midi.lv2/midi.ttl is in lv2-dev 1.0.0~dfsg2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
@prefix dcs:  <http://ontologi.es/doap-changeset#> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix ev:   <http://lv2plug.in/ns/ext/event#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2:  <http://lv2plug.in/ns/lv2core#> .
@prefix midi: <http://lv2plug.in/ns/ext/midi#> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@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#> .

<http://lv2plug.in/ns/ext/midi>
	a lv2:Specification ;
	rdfs:seeAlso <midi.h> ,
		<../../meta/meta.ttl> ;
	doap:license <http://opensource.org/licenses/isc> ;
	doap:name "LV2 MIDI" ;
	doap:shortdesc "A normalised definition of raw MIDI." ;
	doap:maintainer <http://drobilla.net/drobilla#me> ;
	doap:created "2006-00-00" ;
	doap:developer <http://lv2plug.in/ns/meta#larsl> ,
		<http://drobilla.net/drobilla#me> ;
	doap:release [
		doap:revision "1.6" ;
		doap:created "2012-04-17" ;
		doap:file-release <http://lv2plug.in/spec/lv2-1.0.0.tar.bz2> ;
		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."
			] , [
				rdfs:label "Merge with unified LV2 package."
			]
		]
	] , [
		doap:revision "1.4" ;
		doap:created "2011-11-21" ;
		doap:file-release <http://lv2plug.in/spec/lv2-midi-1.4.tar.bz2> ;
		dcs:blame <http://drobilla.net/drobilla#me> ;
		dcs:changeset [
			dcs:item [
				rdfs:label "Update packaging."
			] , [
				rdfs:label "Improve documentation."
			]
		]
	] , [
		doap:revision "1.2" ;
		doap:created "2011-05-26" ;
		doap:file-release <http://lv2plug.in/spec/lv2-midi-1.2.tar.bz2> ;
		dcs:blame <http://drobilla.net/drobilla#me> ;
		dcs:changeset [
			dcs:item [
				rdfs:label "Add build system for installation."
			] , [
				rdfs:label "Switch to ISC license."
			]
		]
	] , [
		doap:revision "1.0" ;
		doap:created "2010-10-04" ;
		doap:file-release <http://lv2plug.in/spec/lv2-midi-1.0.tar.gz> ;
		dcs:blame <http://drobilla.net/drobilla#me> ;
		dcs:changeset [
			dcs:item [
				rdfs:label "Initial release."
			]
		]
	] ;
	lv2:documentation """
<p>This specification defines a data type for a MIDI message, midi:MidiEvent,
which is normalised for fast and convenient real-time processing.  MIDI is the
<q>Musical Instrument Digital Interface</q>, a ubiquitous binary standard for
controlling digital music devices.</p>

<p>For plugins that process MIDI (or other situations where MIDI is sent via a
generic transport) the main type defined here, midi:MidiEvent, can be mapped to
an integer and used as the type of an LV2 <a
href="http://lv2plug.in/ns/ext/atom#Atom">Atom</a> or <a
href="http://lv2plug.in/ns/ext/event#Event">Event</a>.</p>

<p>This specification also defines a complete human and machine readable
description of the MIDI standard (except for standard controller numbers).
These descriptions are detailed enough to express any MIDI message as
properties.</p>
""" .

midi:ActiveSense
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Active sense message. " ;
	midi:status "FE"^^xsd:hexBinary .

midi:Aftertouch
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Aftertouch (note pressure) message." ;
	midi:statusMask "A0"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:noteNumber
	] , [
		midi:byteNumber 1 ;
		midi:property midi:pressure
	] .

midi:Bender
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Bender (pitch wheel) message." ;
	midi:statusMask "E0"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ,
			1 ;
		midi:property midi:benderValue
	] .

midi:ChannelPressure
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Channel pressure message." ;
	midi:statusMask "D0"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:pressure
	] .

midi:Chunk
	a rdfs:Class ;
	rdfs:comment "A series of contiguous bytes (usually one) in a message." .

midi:Clock
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Clock message. " ;
	midi:status "F8"^^xsd:hexBinary .

midi:Continue
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Continue message. " ;
	midi:status "FB"^^xsd:hexBinary .

midi:Controller
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Controller change message." ;
	midi:statusMask "B0"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:controllerNumber
	] , [
		midi:byteNumber 1 ;
		midi:property midi:controllerValue
	] .

midi:MidiEvent
	a rdfs:Class ;
	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>

<p>This is equivalent to a standard MIDI messages, except with the following
restrictions to simplify handling:</p>
<ul>
  <li>Running status is not allowed, every message must have its own status
  byte.</li>

  <li>Note On messages with velocity 0 are not allowed.  These messages are
  equivalent to Note Off in standard MIDI streams, but here only proper Note
  Off messages are allowed.</li>

  <li>"Realtime messages" (status bytes 0xF8 to 0xFF) are allowed, but may
  not occur inside other messages like they can in standard MIDI streams.</li>

  <li>All messages are complete valid MIDI messages.  This means, for example,
  that only the first byte in each event (the status byte) may have the eighth
  bit set, that Note On and Note Off events are always 3 bytes long, etc.
  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
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Note off message." ;
	midi:statusMask "80"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:noteNumber
	] , [
		midi:byteNumber 1 ;
		midi:property midi:velocity
	] .

midi:NoteOn
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Note on message." ;
	midi:statusMask "90"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:noteNumber
	] , [
		midi:byteNumber 1 ;
		midi:property midi:velocity
	] .

midi:ProgramChange
	a rdfs:Class ;
	rdfs:subClassOf midi:VoiceMessage ;
	rdfs:label "Program change message." ;
	midi:statusMask "C0"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ;
		midi:property midi:programNumber
	] .

midi:QuarterFrame
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemCommon ;
	rdfs:label "MTC quarter frame message." ;
	midi:status "F1"^^xsd:hexBinary .

midi:Reset
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Reset message. " ;
	midi:status "FF"^^xsd:hexBinary .

midi:SongPosition
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemCommon ;
	rdfs:label "Song position pointer message." ;
	midi:status "F2"^^xsd:hexBinary ;
	midi:chunk [
		midi:byteNumber 0 ,
			1 ;
		midi:property midi:songPosition
	] .

midi:SongSelect
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemCommon ;
	rdfs:label "Song select message." ;
	midi:status "F3"^^xsd:hexBinary .

midi:Start
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Start message. " ;
	midi:status "FA"^^xsd:hexBinary .

midi:Stop
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Stop message. " ;
	midi:status "FC"^^xsd:hexBinary .

midi:SystemCommon
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemMessage ;
	rdfs:label "System common message." .

midi:SystemExclusive
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemMessage ;
	rdfs:label "System exclusive message." ;
	midi:statusMask "F0"^^xsd:hexBinary .

midi:SystemMessage
	a rdfs:Class ;
	rdfs:subClassOf midi:MidiEvent ;
	rdfs:label "System message." ;
	midi:statusMask "F0"^^xsd:hexBinary .

midi:SystemRealtime
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemMessage ;
	rdfs:label "System realtime message." .

midi:Tick
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemRealtime ;
	rdfs:label "Tick message. " ;
	midi:status "F9"^^xsd:hexBinary .

midi:TuneRequest
	a rdfs:Class ;
	rdfs:subClassOf midi:SystemCommon ;
	rdfs:label "Tune request message." ;
	midi:status "F6"^^xsd:hexBinary .

midi:VoiceMessage
	a rdfs:Class ;
	rdfs:subClassOf midi:MidiEvent ;
	rdfs:label "Voice message." ;
	midi:statusMask "F0"^^xsd:hexBinary .

midi:benderValue
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:short ;
	rdfs:comment "The value of a pitch bender (-8192 to 8192)." .

midi:byteNumber
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:domain midi:Chunk ;
	rdfs:range xsd:unsignedByte ;
	rdfs:comment "The 0-based index of a byte which is part of this chunk." .

midi:chunk
	a rdf:Property ;
	rdfs:range xsd:byte ,
		xsd:hexBinary ;
	rdfs:comment "A chunk of a MIDI message." .

midi:controllerNumber
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The numberic ID of a controller (0 to 127)." .

midi:controllerValue
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The value of a controller (0 to 127)." .

midi:noteNumber
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The numeric ID of a note (0 to 127)." .

midi:pressure
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "Key pressure (0 to 127)." .

midi:programNumber
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The numeric ID of a program (0 to 127)." .

midi:property
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:domain midi:Chunk ;
	rdfs:range rdf:Property ;
	rdfs:comment "The property this chunk represents." .

midi:songNumber
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The numeric ID of a song (0 to 127)." .

midi:songPosition
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:short ;
	rdfs:comment "Song position in MIDI beats (16th notes) (-8192 to 8192)." .

midi:status
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ,
		xsd:hexBinary ;
	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: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.""" .

midi:velocity
	a rdf:Property ,
		owl:DatatypeProperty ,
		owl:FunctionalProperty ;
	rdfs:range xsd:byte ;
	rdfs:comment "The velocity of a note message (0 to 127)." .