<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 15, 2016 at 9:26 PM, Yassin Philip <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">Hello!<br>
<br>
Some LV2 plugins seem to now the MIDI channel # of the track on which they are inserted, and some don't.<br></blockquote><div><br></div><div>There is no such concept in LV2. <br><br></div><div>The idea of a track "having" "a" MIDI channel is entirely host specific and isn't covered by any part of LV2 that i'm aware of.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If I had to guess I'd say that nobody knows, only some plugins can receive data from several MIDI channels, and some only work with one, so they never mistake ; Am I right?<br></blockquote><div><br></div><div>As with all other plugin APIs, yes.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Last year I made a GUI around so-404 to learn about LV2 (and C, C++, DSP code, etc. :)) ; And it has the same problem, just sightly different:<br>
Worse: It starts numbering at 0, so if it's inserted on a track w/ MIDI #4, you have to select 3<br>
Better: It remembers said channel # on session reload (ZynAddSubFx doesn't. Yoshimi does)<br></blockquote><div><br></div><div>MIDI channel numbering has always been a problem. Ardour has an option so that the user can decide if MIDI channels start at zero or 1.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Can somebody point me towards the light? I'd like my plugin to only listen to one channel: The one of the host track it's inserted into.<br></blockquote><div><br></div><div>Given that there is no such thing, there's nothing you can do inside a plugin to make it do this precise thing. You could make it listen to just one MIDI channel, but that's not the same thing.<br></div><br></div></div></div>