<?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[ScriptNode - update parameter min&#x2F;max from snex_node]]></title><description><![CDATA[<p dir="auto">How would I update a ScriptNode's top level parameter min and max values, from inside a snex_node that sits inside the DSP network?</p>
<p dir="auto">Essentially I want to use the setExternalData function to pass my data.numSamples variable to a top level parameter. Is this possible?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a> - any ideas? This is using your SNEX one shot sampler snippet.</p>
<pre><code>	// Use this function to setup the external data
	void setExternalData(const ExternalData&amp; ed, int index)
	{
		data = ed;

		ed.referBlockTo(sample[0], 0);
		ed.referBlockTo(sample[1], 1);
		
		if(data.numSamples &gt; 0 &amp;&amp; sr != 0.0)
		{
			
			const auto delta = (data.sampleRate / sr) * pitch;

			for(auto&amp; v: voiceData)
			{
				v.delta = delta;
				updateDelta();
			}
		}
		
		// I want to send a message here to the SNEX node's DSP Network main container
		// I want to send data.numSamples to a parameter called "Loop End" and I want to use it to set
		// the max value attribute.
		reset();
	}
</code></pre>
]]></description><link>https://forum.hise.audio/topic/9696/scriptnode-update-parameter-min-max-from-snex_node</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 14:00:49 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/9696.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 May 2024 09:50:00 GMT</pubDate><ttl>60</ttl></channel></rss>