<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<br>
<div class="moz-cite-prefix">On 17/10/14 15:56, Harry van Haaren
wrote:<br>
</div>
<blockquote
cite="mid:CAKudYbMdCHoXWyQkSTuVS=45r2bpswmmM_vS6P9sUWFAp+h6VA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>On Fri, Oct 17, 2014 at 1:30 PM, Phil CM <span dir="ltr"><<a
moz-do-not-send="true" 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>
</blockquote>
<br>
No matter what I try, I always end up with a <tt>error: ‘class
Widget’ has no member named ‘setValue’</tt>. But I declare <tt>Widget</tt>
quite exactly how you do <tt><span class="n">BittaWidget</span></tt><span
class="o">, I require the same files, I don't know <b>where is
your setValue member declared</b>..? <br>
Also, in your example you are really doing<br>
</span><br>
<span class="o"> <tt><span class="n">self</span></tt><tt><span
class="o">-></span></tt><tt><span class="n">widget</span></tt><tt><span
class="o">-></span></tt><tt><span class="n">graph</span></tt><tt><span
class="o">-></span></tt><tt><span class="n">value</span></tt><tt><span
class="p">(</span></tt><tt> </tt><tt><span class="n">value</span></tt><tt>
</tt><span class="p"><tt>);<br>
<br>
</tt></span></span>(But I dont seem to have a "value" method
either).<span class="o"><span class="p"><tt><br>
</tt></span> <br>
-Phil<br>
</span>
<blockquote
cite="mid:CAKudYbMdCHoXWyQkSTuVS=45r2bpswmmM_vS6P9sUWFAp+h6VA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
Eg (from OpenAV's ArtyFX, Bitta plugin)</div>
<div><a moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.openavproductions.com" target="_blank">http://www.openavproductions.com</a>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Linux-audio-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/listinfo/linux-audio-dev">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Philippe "xaccrocheur" Coatmeur
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bitbucket.org/xaccrocheur">http://bitbucket.org/xaccrocheur</a> / <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/xaccrocheur">https://github.com/xaccrocheur</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://opensimo.org/play/">http://opensimo.org/play/</a></pre>
<br>
</div>
<br>
</body>
</html>