Script FX Panning



  • How do I turn it into just a panner though, without the osc?



  • @d-healey As simple as this:

    HiseSnippet 1563.3oc6Y07aaTDEeV6LgZWJPQEDGWUwAWoPjc5WHgf3jX6JKhSrxll1dpcxtisG4cmYY2wI0shabumg+B3Dhqb.oHDWQhKbu7ePOxM3Mytq8tNNotVzzxG9zNu4qeu2626MuYb6.gMMLTDfLJr6PeJx3MwVC4xdaziv3nl0PFuKtAITZ1lvMaIbLqY0Fs9PeRXH0AYXj+VpwYTXAj92yVcchKgaSGKBg1Svroax7XxwRaW8yYttMHNzcYdoF80p1zVv2P3JF.XJOtLxmX2mzktEQMrbXjwh0cXRQfkjHogHiEVW3Lzpm3Pdz32iEx12kpZTAYAKTj3FBWGEhURQazi45zNQ2CQHCb6wVh7QVhKgawbXijO1h7N5NLGOiz1CibmF7pjFdkmc3YjBdKDAuKhsrCX9xw8nv14wM4RZPGB3BRCqnwhL9Y7FBX.b4xdj9zFAPiQSnzMJWdIyqWt7U9jKT7BE6LfaKYBtofukPR2lW5JEebwBE+xhlS1UmNSsO0VEHbcoASsakmO3zlXI9.u8oAKYd.wc.cz.ASPVaL9jswoo.1QZdpAJ3M4L419T9IY4QwlKkOHFUvPkZOvaE6ArbYNz.DCLzEvsWaKyVaWCogbLu9AO4m9sUQ2tYMhjjrPvZB6iOMPxTpfQM5APTRjqs.tFMruT3qGqmufqPfwhyv19vQgROX+pCG03ojp9IZUSGcTtdMLab2JPDV.DbAj.UOKh2ALpP.5wHb.sW3LvkHyFKnR.D2A37xP5TLKdHSNLcBhWJAHyJbuHtMSZ2a53M2TvK3tdYi23zMW.WuSGpsbLXW.23tuZxsTLld.6uBHYXKSKqx2hqy6x3zksCn.zpE5uEUdnHneoK6D5eYU9jQQ29ATfvQ2Uz1kLrTHwy2kpnbKYtuqvtuE6QzimRHl7ttZDkr6Q3bpa37j4XhCOxOaYNlhCbGw.Ii2sEQFvffN7VC7rfyrroaDiNPlQNUBjn1kUsU7IKJ2Q23OgewcVQ01HtyJIc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ice that at mid position you get a beautiful 12dB... I've made a fix recently, I seeking in my archives...



  • Perfect, thanks! You should make a scriptnode tutorial.



  • @d-healey I should but I hardly have enough of time to work on my projects 😬



  • @d-healey Ok I just made one MUCH simpler compared to what it was in my first attempt...

    HiseSnippet 2110.3oc6Z0zaaibFdnTFGKkjtaV3EXORXzCJ.YEnjSh2EEEVI9i.iFYqZ4jcyoEiIGKQXRNDjihiSvBrG5w9GX6odrmJ50BzC6k9+nA8RA5k7On8clgTbHEshhxJuNYWkCwy2Ouy6y6y7NjrWDylFGyhPF0N7rPJx3539mEvGt4Pha.Z2sPFeLtuqenG0rGIvbq98PO3rPRbL0AYXT8ghdYT6JHD5616nWswCHdj.aZRUxeOg4ZSejquKOq1dc9ctdd6PbnG55q066zYWaVvlLO1H.QUwVnPh8IjAz8HhtUAiLVZaGWNKpOmvowHiq7.lyY8GxNMP0+m3F6djGUTnEpOLQpp2g44HPrnVzlCc8b5kZ4wHjAtW19PU09vJ3ttNtiqWe+PzfY1Hz2OLpLM30RGdVyN7Lzf2UTv6l391Qtg7rVDX6Z3cC3zniIfKPGVp9hp7OMvaxfdDva5SNgtSDTX7HZbOKqaadWKqa8atQcnawLOZSaOJIpgnFw+.mSL27YjHS0LtyW2172ZJILMGP4ae7wTadiUUMZBstZ5HcC7bCnlGOJvl6xBLYA8t+dc2eKAbhXdMrY9gr..X2FlduQzaci5u7F0MgeiWolwT9847H2iFwoMxpF3koCBVruUAdoMBPZyz4swpvBZBq3p2RLQIq6lDOui.JViB3QLSZXcOFmtePiaU+k0qU+aqaVroiOtz1RlLOZToMK39QSafMBF4eDMJ05R6HPBxyxvmOKSOHvVssn0QVvtAt78CoAmG2CkrWJXgInB5JWxA+UIbv9dtNzHjKP0pgS1kQRHmJM7e+8+mMPOd2sHbR5DAyIrNgzHtqvDL1h9LPmPQtqg2hFeBmEJ6ahCDLyYXYe9XwjNNcNKSYgzwgdLYjG+IZ3B98u1.MYvEDhybF4Q34i6EhcIM.tobAXhfnfXWt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owb.MNUCSin0azQdt14Icoi4ivONlNKCSOPphVfT8yKPZI7m2xJerjUtXojNjObxRKbBCgS4ilpguay6ztc60SdLPRAb8.2INB.R+4sOpeIL.LqoF3mzkoCVqlqY0xZsjWgSeeFiOzMXPJhk9YzDbv0mQNnRa5WXfWZXfoq26gjv20TFxc15Rpmpq34JNa41+1ju9DumG4qcJfJe74RpQVwb2wW9Xhxk.X5Yxv.jNDAWBuqCDdHdAJkjWnVxfUJwx5LqICV9sVPcl8cghICd9175+3YyKfap8tXyuCjwISx6MlD2aj2YTpOH2KCHmmPgoEne30arXtw7T8CyyKCV+UIthpwqg+JxynxO.Aov0mJKeLKx27gTHcQw6Ds048Eqfd0M+Gy5WrR3L+EqruMGfvgQjf3PVLsk9LWns15ssEkOJHe2UUk1q+72+z1cDl2Nf4o0ukGWYa8JAVStICJma8559b8hp6x1mBViy9w1fwRJ3O6MxKlJSHnkN+Nq514n8Um42f6GLenNWbeJAUmM39FdG30RwnR6YaP5vChBkX7SfvN4GLQZs4Ci5xBXgCYAhztxHQGP4QtCFPy+jyJyftOmSrOIqlU5b.0iRh0Bs90cdDbiORTW08Zmm8hVy9dwz7WeFVAWSQru4GFeBHU+f+S.4cKBEjGuD3ouH91KtHVCehcD6arUexJhPukk0.1cf7K6rFtqnrYqzuaLwMTrP9f.92XaKXGeNr+T9XZOGiYs4XL2YNFycmiwbu4XLqOGi4Kl5XDmcd+Qbluh+CUzaaYJaFFZOkez+GBRJz..
    


  • Revisting this, still wondering if there is a way to do it without scriptnode. I need a lot of panners for a project and want it to be as light as possible. I was thinking it might be possible through a scripted gain mod.... ?



  • @d-healey The pan law needs better maths but the mechanic is here:

    HiseSnippet 1620.3oc6Y0raaaDDlTxLMRItnMHAsGWHzCJnNNhzIsEIs0N9uDm3eDjb9AnvHXE4JoEhjKA2UNQIH25yPOWfduuB8UnOBsm6k7FzN6RJok1zJJJIMsAlvGzN6LC+lY1c32ttdLykv4rXCyR6OHhXXddqlCBEcWqKlFZr05F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zEOdI2XoiVfMTjsgaRWOsWbNLcZv5KfuRrCVDSeJPrZ29AMAp1tj0RWLCQiojsU53ZxwRhWMIgdpA+M7jNosbrY5j1GYRG43BoS5bjIWRNtX5jKMbRizF2RZdogGDHBEInONk0SSepGI1fBLdNikbafgpfoyQzXZs0IGau+VqiEXIQrTvL9KHfr0IGBmkIgVVIq0I7dBVjBsAQrPIzMO2qBuOcXJcvvevECjKONik7yYFY+djN3fifE0j9LEfe9E+0a+mO6GWNHywu9Md+1skEV3fRso9AbnLGsU.b9ICyKXceXelGoMF5vh38.C8og8Hd6yT5aL8AgSRP7S+GLHznOeoj5z4rdH9Ph5DsJ9yWRMtMKN.caBPGTdlD6S5Ls+7c+qeYZOSazTel18bE.D1OFGxiXbhsdvej4bzeqqSD8C0UennLZICuMgvSSuytxPgN5BqiCy3LXbFOsipGwngaDhg9XMIPz3sG2EBVYtS+3j066yIOj5I5p42+PSrit36fi8f5halC3UblNUU1y8NwdfmdV+T3Vb5f6q3PpkFhwlTIquMBOj3CcLUX7BPKR0N0gRytOaGVHKpKKjlYEPCBreuSGRlEV4FP2RH.VyikbwUZP7I.ahwh9hU1FNxGNFxSjYLWXO84hIUu9bqD3hjMGPeXbGME+.5NZdWrCE5e9+mJ8mYA8zcPpxM58e89HLUsxkoZg2HlpyHYAmIbA3+9G.jEd4xmRV3TxBu+IK3bJYgSIKbJYgSIK7NhrPgIQVn3wHK7u7UmYLoqNy7XWcV.1Ml8X2ja9R1p4rJIPFKT8eNuj0NxwnQ2WlkUsEqIumF5icck6FtBjYy2FmYvlklAat1LXy0mAa9pYvludFr4alnMRtB2pufEjryADTeC0cOZZlvcRsIx3evZrZQo
    

    Is it what you need?



  • @ustk Thanks that seems perfect. I'm thinking I should be able to take the same code and write it as a gain modulator too? That way I could use it as a global mod.



  • @d-healey hmmm... not sure about the gain modulator since channels as argument in the processBlock doesn't work 🤔





  • @d-healey is it from a gain mod? It didn't work when I tried in a gain mod… Will check tomorrow…



  • @ustk oh sorry I see it is a script fx like what I've done, so in a gain mod I don't know…



  • @ustk I'll try it and report back 🙂



  • Actually you're right, it is a script FX, I was thinking it was a scripted mod...



  • @d-healey yeah, it makes sense channels is not a part of a modulator processing since it has no audio but a mod signal



  • @ustk Yeah, I'll go with your scriptFX version then, should be fine. Thanks again!


Log in to reply
 

9
Online

1.2k
Users

3.9k
Topics

34.5k
Posts