Selecting the custom networks inside Hardcoded Master FX
-
How can we dynamically select the custom networks inside Hardcoded Master FX?
setEffect doesn't work. I couldn't figure it out.
-
.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]);
-
@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);
-
-