I'm a bit confused about the relationship between Events and Atoms...<br><br>Event ports seem like they want to define A "supportsEvent" property, which defines which types of events they will take. (<a href="http://lv2plug.in/ns/ext/event/#supportsEvent">http://lv2plug.in/ns/ext/event/#supportsEvent</a>)<br>

<br>the supportsEvent property takes a "ev:Event", which says "Specific event types (e.g. MIDI, OSC) are defined by extensions, and should
be rdfs:subClassOf this class."<br><br>However, the Atom ttl (<a href="http://lv2plug.in/ns/ext/atom/">http://lv2plug.in/ns/ext/atom/</a>) Does not ever define an event type.   It mentions that "An Atom can be trivially constructed in-place from an
Event", but it doesn't describe what type of events can be turned into an Atom, and how to define a port which which receives events of this type.  AtomPort seems to be for passing a single value, not passing multiple events.<br>

<br>If I'm defining a port which takes a "Bang" type, what is the code equivalent to<br><br><pre>lv2:port [<br>             a ev:EventPort, lv2:InputPort ;<br>               lv2:index 0 ;<br>         ev:supportsEvent <<a href="http://lv2plug.in/ns/ext/midi#MidiEvent">http://lv2plug.in/ns/ext/midi#MidiEvent</a>> ;<br>

                lv2:symbol "midi_input" ;<br>           lv2:name "MIDI input" ;<br>     ] .<br></pre>?<br><br>What should I put instead of <<a href="http://lv2plug.in/ns/ext/midi#MidiEvent">http://lv2plug.in/ns/ext/midi#MidiEvent</a>>
?<br><br>Jeremy<br><br><div class="gmail_quote">On Tue, May 31, 2011 at 8:25 PM, David Robillard <span dir="ltr"><<a href="mailto:d@drobilla.net">d@drobilla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On Mon, 2011-05-16 at 18:45 -0400, Jeremy Salwen wrote:<br>
> Hi David:<br>
><br>
> I've fixed the indentation to match the other extensions, and changed<br>
> it to lv2:documentation: see<br>
> <a href="http://columbia.edu/%7Ejas2312/lv2-trigger-2.0.tar.gz" target="_blank">http://columbia.edu/~jas2312/lv2-trigger-2.0.tar.gz</a><br>
><br>
> I was aware that you can't just start using the ns/ext namespace, but<br>
> I wasn't sure how to get approval for it besides posting the extension<br>
> on the mailing list. (I certainly wouldn't just write plugins using it<br>
> without getting some sort of approval.)<br>
><br>
> Also, you said that it was too narrow in scope.  What would you<br>
> suggest is also included with it?  Another event type with some sort<br>
> of velocity parameter?<br>
<br>
</div>I forgot, there is this:<br>
<br>
<a href="http://lv2plug.in/ns/ext/atom#Bang" target="_blank">http://lv2plug.in/ns/ext/atom#Bang</a><br>
<br>
Note that "atoms" are binary compatible with events, they are<br>
essentially events with the timestamp lopped off, and the same types can<br>
be used for both.<br>
<br>
However, I am really frustrated by the extremely stupid use of uint16_t<br>
for event types, which causes a ton of wide-reaching URI-map relates<br>
hassles, so I almost want to throw away this compatibility with atoms<br>
and eventually deprecate the event extension altogether...<br>
<br>
So, I am not sure what to suggest.  I am using atom:Bang for such<br>
things, for now, anyway.<br>
<font color="#888888"><br>
-dr<br>
<br>
<br>
</font></blockquote></div><br>