HISE Logo Forum
    • Categories
    • Register
    • Login

    setEffect()

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 378 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.
    • ulrikU
      ulrik
      last edited by

      If I have this

      const Slot1 = Synth.getSlotFX("Effect Slot1");
      
      const FX1 = Synth.getEffect("Effect Slot1_Hardcoded Master FX");
      

      is it supposed to be possible to set this Hardcoded Master FX like this:

      Slot1.setEffect(FX1.getId());
      

      because if I try, the "Network" will not be set and it will end up with an empty Hardcoded FX?

      Skärmavbild 2023-01-24 kl. 10.42.53.png

      Is it possible?

      Any help is much appreciated

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @ulrik
        last edited by

        @ulrik The hardcded master effect module is the effect slot equivalent for script node effects.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey yes I know that, but is it possible to use "setEffect" and get the "Network" as well?

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          ulrikU LindonL 2 Replies Last reply Reply Quote 0
          • ulrikU
            ulrik @ulrik
            last edited by ulrik

            @ulrik I have the reference to it here

            const FX1 = Synth.getEffect("Effect Slot1_Hardcoded Master FX");
            

            but the reference to the network doesn't seem to follow along

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @ulrik
              last edited by

              @ulrik said in setEffect():

              @d-healey yes I know that, but is it possible to use "setEffect" and get the "Network" as well?

              No; for "standard" effects you use a Slot Effect, for Script Node you use hardcoded Master Effects, so if you want to mix and match these type of FX then you need to have both and bypass the one you are not using (I think).

              HISE Development for hire.
              www.channelrobot.com

              ulrikU 1 Reply Last reply Reply Quote 2
              • ulrikU
                ulrik @Lindon
                last edited by

                @Lindon Ok, that's a pity, it would be great if the reference to the Hardcoded Master FX would include the network, it would be so much easier to swap between "regular" and "Hardcoded"

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                ulrikU 1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @ulrik
                  last edited by

                  @ulrik or restoring the specific slot using Base64, but I guess that's not possible

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

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

                  49

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts