HISE Logo Forum
    • Categories
    • Register
    • Login

    Scripting to access parameters in scriptfx

    Scheduled Pinned Locked Moved Unsolved Scripting
    5 Posts 3 Posters 431 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.
    • L
      Lydian
      last edited by Lydian

      Hello, I am a complete beginner and I was messing around with the no code toys available in hise. I am a software engineer so I'm familiar with coding but I just can't find any helpful tutorials for what im about to ask.

      can i use the (on note on) callback function to edit paramters within my scriptfx thing and if so how can i do that?

      thanks in advance

      edit 1: ok i just found out that the scriptfx has it's own set of functions I thought the scripting was only for the interface lol. ok but how do i make these two scripts communicate? Global functions?

      edit 2: I have no idea how to use the scriptfx callback functions :D help

      griffinboyG 1 Reply Last reply Reply Quote 0
      • L Lydian marked this topic as a question on
      • griffinboyG
        griffinboy @Lydian
        last edited by griffinboy

        @Lydian

        Import this snippet into HISE

        HiseSnippet 1519.3ocuW08aaaCDWJIJswqCnEcXOSzWpKPlqjii+.CCq4KuYrkTu5zfrmBXjniIrDoJEcR7F166e0819OX6NRYK4jzzLOrICXHdj2c+ti28iT8UxPVVlT43twwSSYNtOwavTgdzdinbgSu8A4dGbMMIMl4r6zTZVFKxw0c0uCm1ci0bLO+42tKMlJBYEhbbNQxCY+HOgqKj1+M+.ONtKMhcLOozpa7ldgRwdxX4D.Jq546jRCGSufcDEW1JdNtqePDWKUCzTMKywcsckQSGLRdkvt9S3Y7yAPBCBbF.FxJtqLNBQLJ0YuQ73n9yB4LGvJ8KR.qZS.eg2g7H9b4EIhmZlfTnQ47g6JKBuUW.dAkgmeI3cGPxsDjVyBom4MHTwS0Eyf34y75IzL0PZ3haM105rxerh2dRXEBcsD5XVWELXtFUa56uIA96UeckJUd8qI6oX.xITBrOjooBM4RphSALSzinZhhMTwfc3LXHijY7Ao6o0H+rbBQvXQDsjDIgY4YDtfHUQLEJKTljLQvCQqeEWOJW2tmRnhHx66QXwr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sku4IHnSc+N06Tx8O2qSs1cvmlAs2dK+5s151.oYiVAsZGzZK+laGztoAHq58SN41vyK.feY2uVg6eDjZZuPDutmQ.Zj0MGSTXG+aXmRggcxBqXc5Mg5V9A9Xv1oS6FcZ4GjmyFjHklqeMyUeIZM+N1mVsZ1nc8saW+g66Fnu0rTj1ZFVrAzgXQ4+h.5NLJ7ILB7lrQ2LgWbd8MJ9bKuWXMQ9Efb9T.XVYYwAc30CDLCSa1hCcrr.8hJ0.N2ynzxUqK.WyoK3H3L0UrbD8xNAmEtm6LL.7P6JkiSnFFvk69J+evWatG7Yg1ifvf6wFIPOhv74e4IeRfyk2L4l.eR1YggKZpaoX8kUwsVVEarrJt8xpXykUwVKqhs+zJhewbNKKVt63bX+CLEgttyZIgyBc9a.pOXmRC
        

        Hopefully this should explain some things.
        Look at the code inside of the INIT callback, and the ON NOTE callback
        : )

        I am new to HISE as well, and it took me a bit to understand.
        But this is the syntax for controlling scriptFX.

        Edit: For more clarification, you need to create a 'macro' inside of your scriptFX in order to control it. When you compile your scriptFX, the 'macros' will be the only controls that remain accessible.
        The syntax for controlling things inside of HISE seems to be to first create a 'script refrence' for the element you wish to control, and then you can control it using the syntax [script_refrence].[command_you_want_to_execute]

        HISEnbergH 1 Reply Last reply Reply Quote 0
        • HISEnbergH
          HISEnberg @griffinboy
          last edited by

          @griffinboy Pretty much hit the nail on the head. Only I would suggest compiling the scripts (Top Menu Bar > Export > Compile DSP Networks to dll) once you are done editing the Scriptnode network.

          Afterwards you can use the "Hardcoded MasterFX" Module in the Module Tree and load in your FX network (only the macro knobs will be visible). From there you can reference it generically or as a SlotFX: https://docs.hise.dev/scripting/scripting-api/slotfx/index.html

          griffinboyG 1 Reply Last reply Reply Quote 1
          • griffinboyG
            griffinboy @HISEnberg
            last edited by

            @HISEnberg
            Yes thanks for adding this detail, I forgot to mention it.
            I have only just started HISE myself and do not fully understand everything enough to explain it in super detail :beaming_face_with_smiling_eyes:

            HISEnbergH 1 Reply Last reply Reply Quote 0
            • HISEnbergH
              HISEnberg @griffinboy
              last edited by

              @griffinboy I mean honestly you can just use the scriptFx as well (I forgot that its been updated), but the EffectSlot offers flexibility if you are looking to change out networks on the fly. So you can pretty much disregard my last post unless you are looking to do this.

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

              42

              Online

              1.7k

              Users

              11.7k

              Topics

              102.2k

              Posts