Forum

    • Register
    • Login
    • Search
    • Categories

    setEffect()

    Scripting Forum
    3
    7
    146
    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.
    • ulrik
      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 13, Xcode 14.0.1
      http://musikboden.se

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        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

        ulrik 1 Reply Last reply Reply Quote 0
        • ulrik
          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 13, Xcode 14.0.1
          http://musikboden.se

          ulrik Lindon 2 Replies Last reply Reply Quote 0
          • ulrik
            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 13, Xcode 14.0.1
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • Lindon
              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

              ulrik 1 Reply Last reply Reply Quote 2
              • ulrik
                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 13, Xcode 14.0.1
                http://musikboden.se

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

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

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

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

                  23
                  Online

                  1.1k
                  Users

                  6.8k
                  Topics

                  62.5k
                  Posts