<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 1:44 PM, Phil CM <span dir="ltr"><<a href="mailto:philcm@gnu.org" target="_blank">philcm@gnu.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<br><div>I think you're confused. The host
doesn't put a plugin on a MIDI channel. It
delivers MIDI events to the plugin which
might be on any channel. <br>
</div>
<blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><span><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">
</div>
</div>
</blockquote>
</span> But in Qtractor I do have a choice of what
MIDI channel (or any/omni, for that matter) I'm
sending signal to on that particular track... So, no?
No way for the plugin to retrieve any info from the
host (I mean specific info, not just instantiated,
port enum et al) I guess it makes sense since it would
introduce a breaking point. Sorry, I don't really
speak english, I'm just persuaded I do.<span><br>
</span></div>
</blockquote>
<div><br>
</div>
<div>That is a host-specific issue. The part of the LV2
specification and the existing extensions don't describe
that functionality. As far as the plugin is concerned,
it just gets MIDI events. If the host is filtering some
of them, the plugin has no way to determine this
programmatically.<br>
</div>
<div> <br>
</div>
</div>
</div>
</div>
</div>
</blockquote></div></div>
Wow, not even the very channel it's broadcasting on in readable?
Does that mean that I <b>have</b> to implement a MIDI channel
selection in my synth? There is no way to go around this?<span class="HOEnZb"><font color="#888888"><br></font></span></div></blockquote><div><br></div><div>Again, you're confused. The host doesn't control what the plugin does when it generates MIDI. The host *might* filter messages from the plugin based on some user preference, or it might not. It sounds as if you need an LV2 extension so that the host and plugin can exchange information on preferred MIDI channel(s). This isn't part of the core LV2 specification. The host is free to deliver zero, one or more MIDI channels to the plugin; the plugin can use any channels it wants, but the host might throw away zero, one or more channels.<br></div><div> <br></div><div>Sounds as if you want the host to allow the user to select a channel and then have the plugin know about that choice. Not part LV2, and also not part of AudioUnits or the VST plugin APIs.<br></div></div></div></div>