HISE Logo Forum
    • Categories
    • Register
    • Login

    (Scriptnode) Link parameter to Xfade Mode

    Scheduled Pinned Locked Moved Feature Requests
    6 Posts 5 Posters 610 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.
    • bendursoB
      bendurso
      last edited by

      I would like to change the xfade mode from the user interface. So it would be great to link a parameter to the xfade mode.

      LindonL orangeO 2 Replies Last reply Reply Quote 0
      • LindonL
        Lindon @bendurso
        last edited by

        @bendurso you mean like this?
        2f18a439-3802-45bc-b545-5faa77a35d38-image.png

        simply add a control to your UI, create a reference to your scriptNode, and call this in the widget CB:

        yourScriptNodeName.setAttribute(yourScriptNodeName.Mix, value)'

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • orangeO
          orange @bendurso
          last edited by

          @bendurso The node mode can't seem to be changed. What about using multiple xfade nodes?

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

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

            You can do that by grabbing a script reference to the node in question and then setting the property (here it's called "Mode"), but you're entering experimental territory here as it's not used very often and compiling a node and doing this with the hardcoded version is completely out of the question.

            const var n = Engine.getDspNetworkReference("Script FX1", "script_fx1");
            const var f = n.get("xfader1");
            
            var useSwitch = true;
            f.set("Mode", useSwitch ? "Switch" : "Linear");
            
            bendursoB 1 Reply Last reply Reply Quote 0
            • bendursoB
              bendurso @Christoph Hart
              last edited by bendurso

              @Christoph-Hart Nice. It could be nice have something like this:

              xfade.png

              Edit: Actually, well the icon is just for illustration purposes hehe. It would be great to drag a parameter to the xfade combobox to compile a hardcoded fx.

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

                @bendurso @Christoph-Hart Or just remove the dropdown and make it a parameter like in some other nodes

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

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

                29

                Online

                1.8k

                Users

                12.0k

                Topics

                104.5k

                Posts