<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 20, 2014 at 1:39 AM, Philippe Coatmeur <span dir="ltr"><<a href="mailto:philcm@gnu.org" target="_blank">philcm@gnu.org</a>></span> wrote:</div><div class="gmail_quote"><lots of emails></div><div class="gmail_quote"><br></div><div class="gmail_quote">Hi Philippe,</div><div class="gmail_quote"><br></div><div class="gmail_quote">I can't follow the issue you're having here: you've sent 8 emails, most with different questions with a layout that is hard to follow: please be more careful in what text you reply to, and remove all the rest of the email. Then make sure you're repling to the "linux-audio-dev" list, and not (only) to the individual.</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you're struggling with code, take a step back, and write a single email, with a direct question, that sums up what you're trying to learn.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Eg:</div><div class="gmail_quote">How does setValue() work to updated a widgets value in NTK, in the context of an LV2 plugin?</div><div class="gmail_quote"><br></div><div class="gmail_quote">To which I would answer:</div><div class="gmail_quote">Most NTK widgets that have a "value" like a slider or a dial, derive from a base class that implements value() and value( float );</div><div class="gmail_quote"><br></div><div class="gmail_quote">What this means for a widget, is that in order to change the value of a widget called "wid", we do this:</div><div class="gmail_quote">wid->value( 0.0f ); // sets widget value to 0</div><div class="gmail_quote"><br></div><div class="gmail_quote">What you will see here: <a href="https://github.com/harryhaaren/openAV-ArtyFX/blob/master/ui/crusher.h#L156" target="_blank">https://github.com/harryhaaren/openAV-ArtyFX/blob/master/ui/crusher.h#L156</a></div><div class="gmail_quote">Is the value() call, which returns the value stored in the base class, aka 0.0f in this case.</div><div class="gmail_quote"><br></div><div class="gmail_quote">To connect an LV2 port to a widget, in port_event() have this type of code:</div><div class="gmail_quote"><a href="https://github.com/harryhaaren/openAV-ArtyFX/blob/master/bitta/gui/ui.cxx#L116" target="_blank">https://github.com/harryhaaren/openAV-ArtyFX/blob/master/bitta/gui/ui.cxx#L116</a><br></div><div class="gmail_quote">Which checks the port number, and assigns the incoming value to the widget, using the value( float ); call.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Its pretty simple right? Cool.</div><div class="gmail_quote"><br></div><div class="gmail_quote">RE: the other emails, Yes Sorcer uses NTK, NTK is in turn based on FLTK, and to maintain backwards compatibility with existing code, the function names weren't changed.</div><div class="gmail_extra"><br></div><br>HTH, -Harry<br clear="all"><div><br></div>-- <br><br><a href="http://www.openavproductions.com" target="_blank">http://www.openavproductions.com</a>
</div></div>