<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A few questions of understanding]]></title><description><![CDATA[<ol>
<li>LAF global vs. local?<br />
We already had this topic briefly here - my question is about the meaning of global vs. local.</li>
</ol>
<p dir="auto">If I have almost 100 knobs (in different panels) that should all look the same, a global LAF is better, isn't it?</p>
<p dir="auto">With a local LAF, I would need an additional 5-10 scripts for each knob for the individual LAF.</p>
<p dir="auto">or do I understand this wrong.</p>
<ol start="2">
<li>all declarations in one script?<br />
Does it make sense to collect all component declarations in an external script "declarations.js" or better in different scripts at the beginning of the respective function?</li>
</ol>
]]></description><link>https://forum.hise.audio/topic/6842/a-few-questions-of-understanding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 01:02:31 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/6842.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Dec 2022 17:31:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A few questions of understanding on Thu, 01 Dec 2022 17:36:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1369">@MikeB</a> said in <a href="/post/59046">A few questions of understanding</a>:</p>
<blockquote>
<p dir="auto">If I have almost 100 knobs (in different panels) that should all look the same, a global LAF is better, isn't it?</p>
</blockquote>
<p dir="auto">If they all look the same and all have the same colours then it doesn't matter. I'd still go with local so that I had control over individual knobs and so it didn't make the HISE UI knobs look weird, but it really doesn't matter.</p>
<blockquote>
<p dir="auto">With a local LAF, I would need an additional 5-10 scripts for each knob for the individual LAF.</p>
</blockquote>
<p dir="auto">You can use the same local LAF object for multiple controls. I put almost all my laf in a single file. See <a href="https://github.com/davidhealey/LibreWaveBoilerplate/blob/master/LookAndFeel.js" rel="nofollow ugc">this</a> as an example.</p>
<blockquote>
<ol start="2">
<li>all declarations in one script?<br />
Does it make sense to collect all component declarations in an external script "declarations.js" or better in different scripts at the beginning of the respective function?</li>
</ol>
</blockquote>
<p dir="auto">As I mentioned I put almost all my laf functions in a single file. I put component declarations into separate files, each with their own namespace. So if I have a set of controls all relating to a mic mixer, then they go in <code>Mixer.js</code> with the namespace <code>Mixer</code>.</p>
]]></description><link>https://forum.hise.audio/post/59047</link><guid isPermaLink="true">https://forum.hise.audio/post/59047</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 01 Dec 2022 17:36:28 GMT</pubDate></item></channel></rss>