Script FX Panning
-
@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.tobAXhfnfXWt1J95MVHhAyJbuItmK2dX43sRI3EbLKZ7lHsdCrRnHCrWAuyW+iqNp0LpiVGmJ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CgS4ilpguay6ztc60SdLPRAb8.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+lY1c32ttdLykv4rXCyR6OHhXXddqlCBEcWqKlFZr05Fler0NXtfDiRDs5fHLmS7LLMKdao.yRyYndd4xqh8wgtjwhLLd.i5R1lFPEikVek6Q882D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53ZxwRhWMIgdpA+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 -
@ustk Channels is available in the processBlock though - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/script_fx/FX_MultiChannelGain.js
-
@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!