Forum
    • Categories
    • Register
    • Login

    Script Oscilloscope Buffer Size

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 17 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ChazroxC
      Chazrox
      last edited by

      How can I increase the length of the buffer size of my oscilloscope inside of my scriptFX node?

      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?

      Screenshot 2026-05-05 at 1.38.59 AM.png

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @Chazrox
        last edited by

        @Chazrox It's volatile, so you need to do set the ring buffer properties in script so it can be recalled at init/compile.

        On the oscilloscope node, create an external display buffer

        then in the script:

        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
        });
        

        And it's dynamic, in the case you want to change it with slider/combobox/etc

        Hise made me an F5 dude, any other app just suffers...

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        17

        Online

        2.3k

        Users

        13.7k

        Topics

        118.8k

        Posts