assign FX to Effect slot
-
@Straticah Yeah, i tried it, nothing changes.. :-(
-
@toxonic that is really old code, I wonder if it still works, maybe it needs tweaking a bit I guess :)
But I see @Straticah made it work, great!
-
@toxonic I think I have some more developed code for that project, I'll look at it when I'm at the computer
-
@ulrik i'd love to see that!
-
@toxonic Ok I fixed the old code so it should be working
This is only the swapFX functionHiseSnippet 2486.3oc6Z0siaabElxqURHSRSBfKPupcrtHfpVqrz9SRgcMrzJQYKD8GD0Z6Ea2tfK4HoYWJRERJuqPydYA5CRurOD4cHWlaJ5SPeCROmYHEIkzt1YgsgApWC3ky4mY9lyeyLG6ddtlTeeWOoLxClOkJk4yxpO2IXbswFLGol0kx7EYav77CHUCBnSlFHs27oF99TKoLY13InPYjusD+m+6i2yv1vwjFSRR5YtLSZK1DVPL0dU9NlscCCK5.1jDRuSklltN0bscmA.ZirkjlZXdlwHZGCTrakUJyGoYwBb8zCLBn9RYt8dtVy0G6dtiP9mw7YmXSwAkkzgIRPtgqsEhXjpTswLaqdQabeIXV5EaF1PXFtS11LK1B5wliujyfDqQR6QlakFdajBdkSBuRIf2ZfTlDP51BH8UY0M8XSCh4f34Sy1zIf5Mz.L6IghPVoa8yeQ1ZtfDNAEmXbFsgGLXgFpeSoREH6VpT9Gpnb+6K2oZaMR2FjAOUiz3EjAcIM6nq0e.QUqcuAGPdDoiKvHu7lq6GEv4AAJuzvCU9QjCUxoAQLyyUPIWsYdujp883m5rISso8ouj5cR7XLTBGUmZav0fGyP8DzF4AAK74Yrq2Le7qdiM7oMdAeFLBl4Y.1ctvycLlvL4xnO1XJJixQh8G.K8VcGnS5q0PquVmZZxW0NP21MvmuI34CEGQCPRMdgZNsgColAbIJmKegqUfsdUBr8qRfcdUBrKJP3FrW0NZsP+V8l58ZU8fHOYsts1ucmUcaxvOD9ekx40yvgZCa9nHGXgq4NYpqCLPMWH+bXPCtn5OuZObQZremZCZ1sy5hNTXN1LGJY3LGy.lqCw+biopLqKJWf.+8V4U9aJx1tlF1jgWTFV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IuPlkwwYBYVNh46j03WSn3VuCBE2H5PovKcrZv3NGyY81AK+eoec62K7q69A+5aX+5NuC7qebDHDWChCheaphFGGxI4gG8AHjrP+ySbewe72+2+4EGIjTHwYPenZ9anniceuHqe6Oj0+dxZLwvzy8XSwiYQG4mvo.1VG9+x9xYaiiIkk3OvEzKaohkjlvrXGaZhWXdS3MoqWmstA5r8MPmctA5r6MPmu4Fny2dCz4Ocs5f+mbn5r.2IhGPAD5owe0elLZNFPFBOaR5+M1CgpH
-
@ulrik I just found this, it's great :) How could we save the order of the FXs in the presets?
-
@bendurso Check out the
Engine.addModuleStateToUserPreset
: https://docs.hise.audio/scripting/scripting-api/engine/index.html -
@HISEnberg Yes, I tried someting like this:
for (i = 0; i < Slots.length; i++) { Engine.addModuleStateToUserPreset(Slots[i].getCurrentEffect().getId()); }
But the console says it can't store modules with child modules.
-
If it's only the order you want to store, so perhaps you could put this in an object and save it as a panel's value. If you search the forum for "variable persistence" you should find some results related to this concept.
-
@bendurso Do you have modulation targets in the script network? I had to remove them before it worked in my network, something like:
"RemovedChildElements": ["Modulator"]