HISE Logo Forum
    • Categories
    • Register
    • Login

    processBlock and Script Time Variant Modulator

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 167 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.
    • A
      aaronventure
      last edited by

      Let's talk processBlock, its usage and syntax. Also the Script Time Variant Modulator.There are a few scattered examples on the forum for using it to create custom routing quickly and efficiently with a few lines of code (very useful), and this example for creating a smoothed value control.

      None of this is in the docs so post what you know.

      Does processBlock execute based on buffer size? Is this where you would write your algorithms for scripted modulators?

      Is using the scriptnode instead preferable? How would you go about creating a simple custom LFO? Using the oscillator in scriptnode at first seems to work as intended but different notes alter the rate of it and the rate only seems to go down to 20. I don't see a node which can feed engine uptime to be used with the math notes, so I guess it's back to code and processBlock? Is Engine.getUptime a fast, consistent, stable (i.e. are the results 100% consistent in offline renders) thing to be used here?

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @aaronventure
        last edited by

        @aaronventure scriptnode is definitely the way to go - the processBlock way is just sticking around for backwards compatibility.

        If you don‘t want the oscillator to react on the midi input, put it in a no_midi container. The range of every scriptnode parameter can be changed by clicking on the arrow that appears on hover.

        Christoph HartC 1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart @Christoph Hart
          last edited by

          Is Engine.getUptime a fast, consistent, stable (i.e. are the results 100% consistent in offline renders) thing to be used here?

          Yes. The uptime is counting the samples that are processed in the audio callback so it will behave the same in an audio export context.

          A 1 Reply Last reply Reply Quote 1
          • A
            aaronventure @Christoph Hart
            last edited by

            @Christoph-Hart

            Thanks for clearing it all up.

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

            37

            Online

            1.7k

            Users

            11.7k

            Topics

            102.0k

            Posts