<?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[Script Oscilloscope Buffer Size]]></title><description><![CDATA[<p dir="auto">How can I increase the length of the buffer size of my oscilloscope inside of my scriptFX node?</p>
<p dir="auto">I change the number and its good for a little while until it decides to change back to default value "8192" again.  Can I script this in onInit somehow to be a larger size?</p>
<p dir="auto"><img src="/assets/uploads/files/1777970676884-screenshot-2026-05-05-at-1.38.59-am.png" alt="Screenshot 2026-05-05 at 1.38.59 AM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/topic/14699/script-oscilloscope-buffer-size</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 11:55:49 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14699.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 May 2026 08:44:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script Oscilloscope Buffer Size on Tue, 05 May 2026 11:35:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/4087">@Chazrox</a> you need to set the ring properties again after changing the variable, it's not automatic</p>
]]></description><link>https://forum.hise.audio/post/120101</link><guid isPermaLink="true">https://forum.hise.audio/post/120101</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Tue, 05 May 2026 11:35:17 GMT</pubDate></item><item><title><![CDATA[Reply to Script Oscilloscope Buffer Size on Tue, 05 May 2026 10:56:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/449">@ustk</a> That was exactly what I needed. Thank You! As far as the dynamic part goes, I tried to create a reg for buffer length and change the value with a knob but im not getting any change.</p>
<pre><code>const var Knob4 = Content.getComponent("Knob4");

reg bufferLengthNOW = 0;

db.setRingBufferProperties(
{
	"BufferLength": bufferLengthNOW,
	"NumChannels": 1
});

db2.setRingBufferProperties(
{
	"BufferLength": bufferLengthNOW,
	"NumChannels": 1
});


include("LafOscilloscope.js");

inline function onKnob4Control(component, value)
{
	if (value)
	{
		bufferLengthNOW = value;
		FloatingTile1.sendRepaintMessage();
	}
};

Content.getComponent("Knob4").setControlCallback(onKnob4Control);

</code></pre>
]]></description><link>https://forum.hise.audio/post/120099</link><guid isPermaLink="true">https://forum.hise.audio/post/120099</guid><dc:creator><![CDATA[Chazrox]]></dc:creator><pubDate>Tue, 05 May 2026 10:56:22 GMT</pubDate></item><item><title><![CDATA[Reply to Script Oscilloscope Buffer Size on Tue, 05 May 2026 10:31:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/4087">@Chazrox</a> It's volatile, so you need to do set the ring buffer properties in script so it can be recalled at init/compile.</p>
<p dir="auto">On the oscilloscope node, create an external display buffer</p>
<p dir="auto">then in the script:</p>
<pre><code>const var dbs = Synth.getDisplayBufferSource("ScriptFX/HardcodedFX name");
const var db = dbs.getDisplayBuffer(0); // # index of the external display buffer -1

db.setRingBufferProperties(
{
	"BufferLength": 8192,
	"NumChannels": 1
});
</code></pre>
<p dir="auto">And it's dynamic, in the case you want to change it with slider/combobox/etc</p>
]]></description><link>https://forum.hise.audio/post/120098</link><guid isPermaLink="true">https://forum.hise.audio/post/120098</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Tue, 05 May 2026 10:31:04 GMT</pubDate></item></channel></rss>