assign FX to Effect slot
-
@ulrik it's only a small snippet how to load and swap effect modules using SlotFX
-
@ulrik yea im trying to understand how you got the parameters for each effect to actually work in the set effect panel im gonna try to rig something with this i guess with a animated sli=ding panel call back or something try to get the same effect
-
@ulrik said in assign FX to Effect slot:
@Fortune I had to rethink about this, this is my progress so far.
You can assign any fx in any slot, you can drag to swap with other fx or empty slot.
You can set them bypassed/active and, I hope, be able to edit each one of them separately in the "EditPanel"I have not figured out how to know what kind of values all Attributes have, is it ms, percent, db etc.. I don't know how to automatically retrieve that information.
I could use suffix, min, max values...HiseSnippet 2662.3oc6ZktbabbDdAIWWBqhcjcTkJ4ei2JoJfPPH.dHkHFFQIJBGVwTBEA0UwHoZwtC.FoE6rdO3QEyGB89jejGg7HjGA+Fjz8L6wrfKAgojbIEKpKLc2yLeSeLcOMT2.tMMLjGnUo59m3S0p7Kz6chWznsFYw7z149ZU9U5cdJomKOJjzgGP1iZ4pcuS7sBCoNZUpL+2fBVo5BZhe9g6bOKWKOaZNIMsGyY1zukMlEkSs6l+MlqaGKG59rwJRu5l6Xy81h6xiAPMudKMeK6WaMj9.KTr4z0p7Ya6vh3A8hrhngZUV3dbmS5MhejmT9GyBY8co3f1Z8fERRtC20AQLRUaqQLWmtoG9PMsJ5cyUEyKUEWWeWlCKidtJ4ZBFj7YnpOpL2zfWaU30pT30pL3UQAdKHg2Wp2yNf4GkyAw1U02wKhFLvBLApvRJq1bO4qz2hCR3E0br0qocBfAYyn1Ma0pAYsVsputgAXFBiHGZEP.GfMHGXXt8X+nSLaXXtUbvgzs+N7i8Xi8co6QOjFzOeL5TfitO00RLCg0mFHoML.L6h0YDOHND+T2QVgzNOUrBVQwAVfFTH7IdViY1BY5MxxGkw34EPmz2DAnvys4PZDRpySqYt8fAT6HgDsMq2XpBr7EIvJWj.qdQBrFJ..9p3ODweUPK20xi5BmjTCDrJawG6y8fA0LS3aB1l7Ig9ZSeZYRfSzv3F2nZuir7ICh8riXbupKc1eLXdtLOZlLjPXF0XNG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ZkUouE2JnTV+vc5.GxRmSRTO3tb2w7XunBtGyOy1jeDeOMK7Ay2SyaSz1a+kCyOav8B9pjplhQ408a6cH0ExeJv3WAILE0alRsne8tbOt+HtGyV0nuGEpqZ3PZfJ1K8.AOTAtONmx02bOJ7jSUG3e2leK33YE.5I5kTWzd10ESyd8azkvkfAij++3R84+X6R8KuKeIe4tWQW9EzI15uPW8aJrHHl+8gu17o0jlz8EAJtdAT7RAq2OXQS9F6g6ZAQqP0V5OHdbOHghMELGdPIXX86UlCSJHG2BGKyn34HFfkCkvrMNtRBy1oL+IYO9wXWW9CB65xext9N1ttxGD10U9jc8crcc0eBrqWI6+zSYO2U.jeaAf7REtmeo8ZZhGJqR3IE6Ovy1rjh+2AptJHpK20JXxTwuyNxKLy0KfGoOdpuAKQET4eLAXgKwGO.9Z5cs9Pvg3miW.t1GDI1V6SI19YzdL1xNf+RaYq9QmkqHn.1OOw++aqpuKNlzVSz9eXd5sZ1RaLyg8Raa7QbKAwukOmkuDyYkKwbV8RLm0tDy4lWh4bqKwb9iScNXKttabDer79YfP2sEemHUprsmEDEJhX09efiH6N.
I just found that thread here and tried out your snippet, but for some reason it won't work, like it does in your screen capture. I can assign FX to the containers, but trying to move them, they won't swap position, they rather snap back to their old position.
However, this looks really amazing, but i can't figure out, how you have done that. Can you give me a hint, how you created the 5 "containers" inside the FXPanel? And what makes them draggable?
Sorry for bumping that thread... ;-) -
@toxonic for me it worked after deleting and re adding the fx
-
@Straticah What do you mean with that? Did you delete the FX Slots in the Module Tree? Or do you mean to delete the FX in the Interface, via the Panels context menue "remove all"?
None of these worked for me... :-(
Also, Hise crashes often, when i try to tweak on that snippet... -
HiseSnippet 2222.3oc6Y01baabDFTRHS.ZbaxLYxmOiOjBVSQSpWhyXWMQT7kH1H9xHREaOttZf.NRbUf.n.GkDmF8Op+A525Oo9Kno6dG.AHEkrpZbF+ASaIy61cu6Ye41a2y8iBrowwAQJEzFNKjpT3yTGLym6V20h4qztgRgemZKVTLmTiyo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6eIVLc1D+k8cE2Emwez9Y0a.y9I+L7AI.g2AWldKeL91GPA9jrIVLGjRg+g5MNpqKO8pmcfQ+l7rXR.cQ7sdRKx546OVOq4XcQmw5IsEqmzSrtrgX8jtg0m2JrdZev5IMAqjUkJpxGd3gBUNsmEgY3epHlKiysvogY9Y461bi2j3yU6D3L0C2v7OQBh2DBPP5BuKA91C9wL9r7uazxuaxF2u2M4teVm6Kb+B09Xd7Ui20VAdgv5223M4UndjpLETFX2.B+uymbZi6246LnrxmeR8lX4SUku8f.F+V07OBxh.Z868afU89+FXqmlsH4t.AJ9x7nX2SEjd+fEE4q.LFpXLhAIdT6Ncx.37gMEbM9P1HLyZg0vbfxwUvwXnx.puiX.liIgXUbbgDhUSI9qxd7+hecqOH7q67Q+5uv90s+fvut8G8q+B6W24WA+pZpeMoZEAJ9pExZbZJo7nArMsXdPgKwoFgVsF1z2BPvG87+e6428ChSzU+3I5OP1iIV1QAmZK6LDcjepXFv15K9eRUSsCNlTUQzsHHmZkxUTlvbXmZaiUYtITg5pkYqGfLa+.jYmGfL69.j4ad.x7rGfLe6cJC9epbso7fIxNPfI52TzBcgB4xRp7eAvxVm2D
yes i tried right click/ delete all and added new fx to the panels, now it works on my HISE
-
@Straticah Mhh... i must be doing something wrong. I tried on 2 OS (Linux Mint 21 / Windows 10), added FX in each FXPanel "container" , removed them via richt click -> "remove all" and re-added new FX, but the "containers" snaps back to their old positions, each time i try to drag them to a new position.
-
@toxonic did you compile after each step?
-
@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.3oc6Z0siaabElxqURHSRSBfKPupcrtHfpVqrz9SRgcMrzJQYKD8GD0Z6Ea2tfK4HoYWJRERJuqPydYA5CRurOD4cH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:) 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"]