<div dir="ltr"><div>On Fri, Oct 17, 2014 at 1:30 PM, Phil CM <span dir="ltr"><<a href="mailto:philcm@gnu.org" target="_blank">philcm@gnu.org</a>></span> wrote:<br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">Also each time the UI is opened, the widgets are reset at maximum (not the values).</div></blockquote><div> </div></div>Hi Phil,<div> <br></div><div>Glad to see you're excited and working hard on learning LV2! Checkout the example plugins: they show how things work.</div><div><br></div><div>In the UI, there is a  port_event()  function. It tells the UI what port changed, and what its current value is. Use this to do widget->setValue( newValue ); and you're done ;)</div><div><br>Eg (from OpenAV's ArtyFX, Bitta plugin)</div><div><a href="https://github.com/harryhaaren/openAV-ArtyFX/blob/master/bitta/gui/ui.cxx#L131">https://github.com/harryhaaren/openAV-ArtyFX/blob/master/bitta/gui/ui.cxx#L131</a><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">How can I <i>get</i> the control ports values from the UI perspective?</blockquote><div>In answer to your Q, how to "get", you don't: you're told when there's a new value.</div><div><br></div><div>HTH, Cheers, -Harry</div><div class="gmail_extra"><div><br></div>-- <br><br><a href="http://www.openavproductions.com" target="_blank">http://www.openavproductions.com</a>
</div></div>