# LV2 MIDI Extension # Copyright 2008-2011 David Robillard # Copyright 2006 Lars Luthman # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @prefix dcs: . @prefix atom: . @prefix doap: . @prefix ev: . @prefix foaf: . @prefix lv2: . @prefix midi: . @prefix rdfs: . a foaf:Person ; foaf:name "David Robillard" ; foaf:homepage ; foaf:mbox ; rdfs:seeAlso . _:larsl a foaf:Person ; foaf:name "Lars Luthman" ; foaf:mbox . a lv2:Specification ; doap:license ; doap:name "LV2 MIDI" ; doap:shortdesc "A data type for raw MIDI." ; doap:maintainer ; doap:developer _:larsl ; doap:release [ doap:revision "1.4" ; doap:created "2011-11-21" ; doap:file-release ; dcs:blame ; dcs:changeset [ dcs:item [ rdfs:label "Update packaging." ] , [ rdfs:label "Improve documentation." ] ] ] , [ doap:revision "1.2" ; doap:created "2011-05-26" ; doap:file-release ; dcs:blame ; 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 ; dcs:blame ; dcs:changeset [ dcs:item [ rdfs:label "Initial release." ] ] ] ; lv2:documentation """

This extension defines a data type for a MIDI message, midi:MidiEvent, which is normalized for fast and convenient processing by plugins. It is particularly useful as the payload of an Atom or Event.

""" . midi:MidiEvent a rdfs:Class ; rdfs:label "LV2 MIDI message." ; rdfs:subClassOf ev:Event , atom:Atom ; lv2:documentation """

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

This is equivalent to a standard MIDI messages, except with the following restrictions to simplify handling:

  • Running status is not allowed, every message must have its own status byte.
  • 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.
  • "Realtime messages" (status bytes 0xF8 to 0xFF) are allowed, but may not occur inside other messages like they can in standard MIDI streams.
  • 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.
""" .