HISE Logo Forum
    • Categories
    • Register
    • Login

    if/else statements inside the scriptnode

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 543 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 Former User
      last edited by

      Is it possible to write if/else statements inside the scriptnode to control parameters?

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

        Can you give a more detailed example? There are multiple ways of branching:

        1. Branch in the onControl callback before you send it to scriptnode
        2. Connect a parameter to the bypass button to switch between different signal paths
        3. Use the core.pma node and set the multiplier to either 1 or zero.
        4. Write a custom SNEX node and branch in there

        So in order to figure out which is the best approach I need more info.

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Christoph Hart
          last edited by A Former User

          @Christoph-Hart I have fx units that have parameters with non linear values.
          With scripting, I just wanted to make a custom cpp and use it for dynamically fx adding like below one. So adding and using the unit will be so quick and all in one thing.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by A Former User

            @Christoph-Hart Actually if there was a script engine that lets us code (for example a special eq with known coefficients or assembly code....etc) in scriptnode, it would be awesome.

            Flowstone has something like this. I think it would fit Hise well too.

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

              Thats what Christoph Hart thought in 2018 when he started working on SNEX ;)

              ? 1 Reply Last reply Reply Quote 3
              • ?
                A Former User @Christoph Hart
                last edited by

                @Christoph-Hart You are awesome too :)

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  @Christoph-Hart I don't have a core.pma node 😕 using latest scriptnode

                  ab3c5d9f-8528-472e-94b6-6b8fa8eceacb-image.png

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @A Former User
                    last edited by

                    @iamlamprey It's not implemented yet

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      @iamlamprey said in if/else statements inside the scriptnode:

                      @Christoph-Hart I don't have a core.pma node 😕 using latest scriptnode

                      ab3c5d9f-8528-472e-94b6-6b8fa8eceacb-image.png

                      I think it will be available in "SNEX workbench" later.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        Oh my bad, thanks!

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

                        46

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.4k

                        Posts