HISE Logo Forum
    • Categories
    • Register
    • Login

    Selecting the custom networks inside Hardcoded Master FX

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 334 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.
    • resonantR
      resonant
      last edited by

      How can we dynamically select the custom networks inside Hardcoded Master FX?

      setEffect doesn't work. I couldn't figure it out.

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

        .setEffect() is the way to go.

        You need to get a reference to the hardcoded effect like so
        const slotFx = Synth.getSlotFX("HardcodedMasterFX0");

        And you can get a list of the available networks with:

        const networks = slotFx.getModuleList();

        Then you can do something like
        slotFx.setEffect(networks[0]);

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

        1 Reply Last reply Reply Quote 4
        • orangeO
          orange @resonant
          last edited by

          @resonant Alternatively, you can go with the Base64 encoded states. This is useful especially if you need to load the network with custom parameter values.

          Load the network to the HardcodedMasterFX module and adjust the settings that you need it to be loaded by default. Then click the HardcodedMasterFX module and under Edit menu, select Create Base64 encoded state. It will give a complex encoded data.

          Then create a variable for this data, let's say:

          const var state1 = "289.3ocYPFjSCCCDEcLgrfcr.12iPRu.DZfJPkTpZpPkkl3AhEIwQ1NpjccI2.1yFtFUhyA2AtAfMIMoULql++O9Y6YlTjfJkavCWh.4T2qnRVhfgrAQTkFkCFuDt9BfbReRSv3kdvn5RpRgLfPblh5UB4y.w0MLuDB8WjZ3dzgPaE5Omp4hdquOKz+bsty3luBLyfYcFu9owXRAh6clg6w0Z7etC2ka4GAlY53tdxauaLhy6mX8iAQ7W1kvsU8ov8aHNWx3ZgLVS0nBHNiDr53TwpBSuqObGWweHCaDwhLgsswYrYa2xJCq4hJMu3oHpVZuQ2oU4whJYBFlRKJvLCbWxA10Ui1ypsOhXrf8m3GS0F5a0j1P+sgvuTMFbMA";
          

          then use this to restore the module whenever you want:

          HardcodedMasterFX0.restoreState(state1);
          

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          1 Reply Last reply Reply Quote 3
          • resonantR
            resonant
            last edited by

            Thank you @d-healey @orange

            Both 2 solutions are really helpful.

            1 Reply Last reply Reply Quote 0
            • orangeO orange referenced this topic on
            • First post
              Last post

            50

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts