assign FX to Effect slot



  • Forget about this, I didn't know how to work with this, stupid me 🙂

    I've been experimenting with the Effect slot and assigning effects to them, and noticed that not all effects gett assigned using

    Slots[i].setEffect(FX[index])
    

    for instance Reverb and Phase FX will not be assigned to a slot using scripting, is it a bug?

    I have not tried all effects yet but there might be more that is not assignable.
    effect slot.gif



  • @ulrik in this test I try to assign, Reverb, Phaser and Polyshape but those 3 will not work

    HiseSnippet 2378.3oc6Z07aabbEeoo1XQ5Zml.2zbpXJQOPVSISpOhKpp.oLkXrPjrXEkicfpq5pcGRNvK2Y6rCkDShOVfdqmM5k9uQuYfdp.4PAxohdwnAn.AnG7+AsuYlc4NqzpOrhkrfhIrj479X1ey68l27dypVLpMNHfxLxjaig9XiL+.y1C838Zzyh3Yr7hFYxa17Qn1tTdfwcG5aEDfcLxjI6GK3mI2XFxOur1csbs7rwwjLL9TJwFuBoOgGSsU8Og351zxAuAoulzyTeYapWCpKc.fkrlUL7srehUW78sDhcESiLuyRNDNk0lawwAFYF6tTmgs6Q20SI+mRBHa6hECpZzFlHE4lTWGAhETMZzi35zJZMGXXjwrUrEHqxBbSyUINjQzisD+PICTrF51iLW4nfWUc3U4jCuLZvaLE7dOy11LhOOli.aWybYONl0wBbA5vRIqwU9y4LaPAI73S125I3lLXvHMJ9QUpTFMakJklKedvMDvQ6XwPfeedzl4kwCS1EyWpSGrMuXg0w6fYaWnT4CxR5swrT40pmUvgvpQOJaPP5ZQcGFzyxGWnT9GOW9bvGjFFkAlIgofTyGUrfZFjRTMwTmh.ScbBL8wIvLGm.yJDHbEjCs+0QyG0xxC6BqjH2DLKMn88odvfhEB4WP3gt8sy0FyQTlClkahT9jm34R7vnNC7r4DpGJ.yWSHcQoNkx+E4QvGWpskKh.OyJyIIH+UGJqnhFv5WA.aRWrWWdOX3stUIoHeQjrZyhmCdOPK4CXSximaD+PNyil.UEUS4v.Alz1EawJVB8KiIELxs27QaJ06wByvxNEKUZtbiP3Sy+TkQXWK+QqwbmH6.nQQhydUKifeO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1Jkq2H6410a71vmKKOi9V1L5V1p+BIDwgiKo.9OO4e5u4LWULFU0P9WMAnmYkIqXzm3P1x1V7ZIl.JFOccl5TnyzmBcl4TnyrmBc9nSgN24Tnyu3H0Q7RaWX.m1W0rEPn0Rx+TRxjYIOKXWnLUfw+GrYmuJC
    


  • @ulrik You are trying to affect FX module names to slots.
    But slots are waiting for FX names as they appear in the slot list, so SimpleReverb, PhaseFX, etc...



  • @ustk aha, well that explains a lot 🙂
    thank you!



  • @ulrik Love this!



  • @ulrik Do you mind sharing the working example?



  • @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+T2QVgzNOUrBVQwAVfFTH7IdViY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3oWsIwnxKgADAUnarXGW8BYQmn14725NGWZrxLB2uTuKVjd43ctRvKDy89FuI8g+y0k0xkC1EfXy2sMc+hfxWHgxU06AIQD83U.jesXL4IVPD22P8nhHf1S46G4eOqe+H9y72OxCsifse+.KuPedXgEtGcLaeHxKTk3if30.52sGZkUouE2JnTV+vc5.GxRmSRTO3tb2w7XunBtGyOy1jeDeOMK7Ay2SyaSz1a+kCyOav8B9pjplhQ408a6cH0ExeJv3WAILE0alRsne8tbOt+HtGyV0nuGEpqZ3PZfJ1K8.AOTAtONmx02bOJ7jSUG3e2leK33YE.5I5kTWzd10ESyd8azkvkfAij++3R84+X6R8KuKeIe4tWQW9EzI15uPW8aJrHHl+8gu17o0jlz8EAJtdAT7RAq2OXQS9F6g6ZAQqP0V5OHdbOHghMELGdPIXX86UlCSJHG2BGKyn34HFfkCkvrMNtRBy1oL+IYO9wXWW9CB65xext9N1ttxGD10U9jc8crcc0eBrqWI6+zSYO2U.jeaAf7REtmeo8ZZhGJqR3IE6Ovy1rjh+2AptJHpK20JXxTwuyNxKLy0KfGoOdpuAKQET4eLAXgKwGO.9Z5cs9Pvg3miW.t1GDI1V6SI19YzdL1xNf+RaYq9QmkqHn.1OOw++aqpuKNlzVSz9eXd5sZ1RaLyg8Raa7QbKAwukOmkuDyYkKwbV8RLm0tDy4lWh4bqKwb9iScNXKttabDer79YfP2sEemHUprsmEDEJhX09efiH6N.
    

    effect slot.gif



  • @ulrik I would like Thank you sincerely. I was looking around exactly the same.
    I asked about it in one of my posts. https://forum.hise.audio/topic/4540/how-to-change-order-of-the-stacked-effects/5?_=1631765949078
    @ustk taught me the theory and logic behind it but I am not a HISE expert . Suddenly your post and your practical Example showed me the way to achieve it . FINALLY. 🙂 👍

    God bless you @ulrik



  • @ulrik Now my Question is How can I add Knob Slider with it? If I want to modify the parameter of Effects with Knob Slider from the EDIT interface how to do it?



  • @DabDab that is what I'm also thinking of, to find a smooth way to edit all parameters without to much scripting 🙂
    If you come up with a good way, tell me how you did it.



  • @Christoph-Hart is there a way to dynamically check an effect modules attributes type (suffix), max and min values?



  • @ulrik You are the hammer Ulrik. You get everything out of HISE one after the other. Unbelievable. Admirable. It's fun to learn from you. 🙂



  • @ulrik Does the factory method of creating panels, buttons and knobs when they are needed help?

    HiseSnippet 1615.3ocsX0saZbDEdWGuowzRUhTkxsi3ltnPI7aRSnQIwXSiaisQkjzJEEEMr6.LMKyh1c1XPQ9cnW0mj9X0K50UUp8blYWXw1PAr.Ii2YlyOemu4bl8vzNv2gEF5GXXt2qlLhYX9EVclHjCZNfxEFGc.NQKpizOXB40GYr+jQzvPlqgo4M9dTBy810P84ud59TOpvgMaJCi23ycXujOjKmMa6m8ibOuVTW1q3CSIcsmcjiunoumeDflaXUxXD04Cz9rSnnX6XYXdyCc4.R5HoRVng4t666Noy.+yDZ4eCOj20igCJazALjd5V9dtHhwYMZNf641NIpCM.qzdFGbCMG7UVGyc4SmeFWba0BjYZjlOL2YYvqbZ3UZ0gmYJ3sqFd2wpiS.ejb1JH19bqiDRVPOJrEjFVZYM14O9Lql9fDBYwgzOvZE.Clpg8CKUp.odoR4ajMS1L2+9jel80ddjnPFY.BvfPRnO4LFwgJHTGzuD4.1PBiFx8lP7fXNf3KxlA1DCkjORCHiDduPoK4Ij29tFoWpqTrnk75dAsTv4UCXjdw4gCYxA9tYyvEdbALcjvQx8EDm.Ffh1TAyyV.IMEHiKPljOymxlg.e.qbLrQRFgBPrOi61mIyqVxy2g5Qzy.tMgmnttWxZMzFS+chfgLbyXDKPxYg.yN7G5b5IwZQhcO9I2.Fu+.YtGSJC7cp4AWKGfSWujZxym2OZjUzkJoE61WWi.3rz3VspT4QOpd8FJwRKKBIHZk+jejDXI6DVxtuNj+zTm2uXOnf74dd1xA7v4cR9FWEb.lDnFbSj.7IjFn4zTTItzb739QRI3bjRH2ijaeoHWAfDv+l21SyLJNJJbfMLbco7Y1eNpeDM.zqo+vQ9B3AfrU6OojPxFmLMZCBZjkD9dztPdzBH.HKddB3knz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Ph.+cnXlyNX2e5wkvwHyzgIbUC9W3S7hkwwlwKVNYQigTm.+26naeDuDvaolAvjPcWn6YcLNlTNomQKqREKYLj6xeuiCREeCf8qVmJafNU2.cpsA5TeCz4AafNObCz4aWpN30B+7Ho+PcYBLQ6CU8taZdnfBYYpLRi+Cr0gNYA
    


  • @MikeB thank you Mike!
    and thank you for the factory method, it might be useful 🙂



  • @ulrik Man! This is awesome...



  • @UrsBollhalder thank you, but beware, I'm only experimenting with this, maybe I'm doing something really stupid ðŸĪŠ



  • @ulrik Of course... I'll just study your code and then try to come up with something myself. That way I learn how to do it myself and am also responsible for my own stupid mistakes! 😂

    But just seeing the possibility of it is really nice!

    I would want to have the boxes move while dragging for example, even if there's no mouseUp happening, so you get a preview of things so to speak.



  • @UrsBollhalder said in assign FX to Effect slot:

    I would want to have the boxes move while dragging

    If you're refering to the "not dragged boxes" I agree, this is a swap so it would take some maths to calculate though, consider moving the last fx to slot 2 for instance 🙂



  • @ulrik I am studying keep practicing from the Practical Examples /projects. If you come up with the actual solution Drag Knob Button etc Panel and Swap FX Slot do share the snippet. I really want to study your works. Another Work I am big fan of yours.. That is Color Chart. I guess you made it few months ago. You are a big inspiration for us.



  • @d-healey @ustk how would you decide what type of value, the min and max, and suffix, to get from getAttribute()?

    Would you make a long, long, very long array with the attribute names from all Effects and use as a look up table, or would you use another way, which?

    This what I have so far, as you can see I can manipulate all values and set them with setAttribute, but I don't know what type it is, is it a boolean, values from a cmb, etc...

    effect slot.gif


Log in to reply
 

9
Online

1.5k
Users

4.6k
Topics

42.1k
Posts