<?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[using setModValue and Snex Node Macros &#x2F; Variables]]></title><description><![CDATA[<p dir="auto">Is there an issue with my syntax?<br />
(line 10)<br />
It works perfectly when I inject a float directly into the setModValue, but for some reason it will not accept this float variable macro.</p>
<p dir="auto"><img src="/assets/uploads/files/1719493269988-d9364b48-ba2e-45be-872e-ecd90ee9172c-image.png" alt="d9364b48-ba2e-45be-872e-ecd90ee9172c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/topic/9949/using-setmodvalue-and-snex-node-macros-variables</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 17:50:33 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/9949.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Jun 2024 13:04:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to using setModValue and Snex Node Macros &#x2F; Variables on Thu, 27 Jun 2024 13:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a><br />
Thanks! Apologies for the dumb question : )<br />
I am still figuring out what everything does.<br />
I see, P is parameter <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=fba14f4754a" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://forum.hise.audio/post/82423</link><guid isPermaLink="true">https://forum.hise.audio/post/82423</guid><dc:creator><![CDATA[griffinboy]]></dc:creator><pubDate>Thu, 27 Jun 2024 13:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to using setModValue and Snex Node Macros &#x2F; Variables on Thu, 27 Jun 2024 13:41:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/3542">@griffinboy</a> dummy is the 7th parameter, so it must say</p>
<pre><code>if(P == 6)
{
     dummy = (float)v;
}
</code></pre>
]]></description><link>https://forum.hise.audio/post/82422</link><guid isPermaLink="true">https://forum.hise.audio/post/82422</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Thu, 27 Jun 2024 13:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to using setModValue and Snex Node Macros &#x2F; Variables on Thu, 27 Jun 2024 13:31:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a><br />
Unfortunately it seems that something else is afoot too lol <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/android/1f613.png?v=fba14f4754a" class="not-responsive emoji emoji-android emoji--sweat" style="height:23px;width:auto;vertical-align:middle" title=":sweat:" alt="😓" /><br />
<img src="/assets/uploads/files/1719494202735-1323a93f-8f04-4989-a515-d1cb9ddf0cd3-image.png" alt="1323a93f-8f04-4989-a515-d1cb9ddf0cd3-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1719495014340-781bbbda-70c6-44ba-a136-e20506e7de39-image.png" alt="781bbbda-70c6-44ba-a136-e20506e7de39-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I'm right in thinking this is the correct way to use the macros that belong to a snex node?<br />
Declare them as variables and use them?<br />
For some reason the macro is not affecting the variable.<br />
I can't find a difference between what I have done, and the scripts in the example snippets involving the snex node.</p>
]]></description><link>https://forum.hise.audio/post/82420</link><guid isPermaLink="true">https://forum.hise.audio/post/82420</guid><dc:creator><![CDATA[griffinboy]]></dc:creator><pubDate>Thu, 27 Jun 2024 13:31:17 GMT</pubDate></item><item><title><![CDATA[Reply to using setModValue and Snex Node Macros &#x2F; Variables on Thu, 27 Jun 2024 13:13:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a><br />
Thanks! Ah I did not think of that, no problem</p>
]]></description><link>https://forum.hise.audio/post/82419</link><guid isPermaLink="true">https://forum.hise.audio/post/82419</guid><dc:creator><![CDATA[griffinboy]]></dc:creator><pubDate>Thu, 27 Jun 2024 13:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to using setModValue and Snex Node Macros &#x2F; Variables on Thu, 27 Jun 2024 13:10:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/3542">@griffinboy</a> setModValue expects a double precision number.</p>
<pre><code>modValue.setModValue((double)dummy) should work.
</code></pre>
<p dir="auto">I haven't exactly figured out why it complains at stuff like this, because the compiler should actually be able to implicitely cast the float to a double value.</p>
]]></description><link>https://forum.hise.audio/post/82418</link><guid isPermaLink="true">https://forum.hise.audio/post/82418</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Thu, 27 Jun 2024 13:10:37 GMT</pubDate></item></channel></rss>