Script FX Panning



  • Is there a way to create a pan effect with script FX?





  • Cool - but 12% CPU!

    I was hoping to do it without scriptnode. Basically I have a script that controls the gain of up to 6 channels, really simply

    	gain >> channels[0];
    	gain >> channels[1];
    	gain >> channels[2];
    	gain >> channels[3];
    	gain >> channels[4];
    	gain >> channels[5];
    

    I was hoping it would be just as simple to control the pan, but the core library doesn't contain a panner.



  • @d-healey Yep it's because this one has been made for fast panning, so I added an x4 oversample and a frame, but if you remove them everything's back to normal.

    HiseSnippet 1897.3oc6ZsDaaTDFdV6Lo0tokVT4wIXUEGBRkH6zzVPHvtMNtJh5Dq3zz1SvjcmXOJ6NyxtiaqohaHD25Y3HOj3DvUNfTEhqHgDBwU3LbHG3N7O6r1dW6MIacIMkG6k340Ney+iu4a1IM8EVzf.gOxnv587nHiYvs5wkcVrCgwQKWCY7j35j.oYSB2rgv1rVqlnK2yiDDPsQFF4uhpeFElBE9rSkKSbHbK5vpPnMDLK5UYtL4vZaV8MXNN0I1z0Ytw58BUW1RvWT3H5BXJOtDxiXsMoMcEhpa4vHioWxlIE9sjDIM.YL0kE18Z0Qbatt+avBXa5PUEJiZAuHc00EN1JDqpEsXGlicy9q8.Dx.2bnkHu1RbZbClMaP8CsHmLrAygiHt8vH2dAuxwgWorCOiXvaJM7NEtkkOySNrEE1NFdYtj5uEAbAwgktuHiuCun.5.WNmKYaZcenvfAL6EJU5rlmuToW7UOdwiWbqtbKISvME7UDR5p7Yewh2sXghuaQyQaZqsRsM0T4Kbbn9o1rxy6uWCbVdW2Mo9m07VDmtzAcDLAIsw3c2FGODvRuxi0QAeYNStpGkuaVdTj4R4ChPEzUYnG3DQdfVNLapOhAF5B3lWZEyFqVCEB4n3525de6OUAcskqQjj9uH3cByiG0WxTKAiZzaAYIZWaAbMZv1RgWXec8DbEBLlNCS6cFjJ8VaVs2fB+BopW+U0x1gY4guCy52nLjg4CIWPPfpkowqAFUHAcr.NHrWX20gHSlKnH.hZ.bdIB5TQV7.lrWbBhCjDjrB2Sgax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OgRVZVGZ7brbwxwJdnS2O0qa8Mee6u5oppcogT1imoOF0ODn8PQUT8dYWqMz28mFuzbmqT4RmKR2ZKWgP1gwa2esLEd9RIjYzeKq+O78+Ce+mR3aRII6dgcSrRhs2mVawB+nzYc28rui8fg9oduVwe9S9kJgebdNM7yIFD8s5iJFSHYhOeQB0jwOKJLzP+U3IVW1FxvTeZ4TDZ9204oS+Xo01e+5Te4u8L+96698UFScYbezjbAFw+P2mP2HD2.BCBukwv3nmNrr40I2hZdEJHYPYUKuGWx3Oj0KYzKyWx3pVRX5W2mvC7DAIdwsntr0EbZPh7m.pxOqO5dr5WTP7SsocpTGVjoNlVDYW+vz9K4J5xSjmZjOyew+GfK6bpGquryGcW8T9rA284NSJzGisXp6xXIHY1AxKht77ZzsHfB390lLttgfK75H3pMvF5zWiJ8YsaSSd1hzVPWRJIVaOrlSWcMJbBt3AvuP0qBAdD+F5CbLI1hxY2VrW9qmEqgqoJYz7eGWYX9+SdkgORt7qGEygKwxW7lV56LTEKezvZf0MO7e2jB3Fpxlk6ec9XPATIjKvH9lVVJy8KA1mzGy7SvXN2DLlElfwb9IXLWXBFyEmfw7x64XTaFcotRgqNUDpn4RgpRLLF945xi9K.uftopC
    


  • 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.XJOtLxmX2mzktEQMrbXjwh0cXRQfkjHogHiEVW3Lzpm3Pdz32iEx12kpZTAYAKTj3FBWGEhURQazi45zNQ2CQHCb6wVh7QVhKgawbXijO1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4qVtR4qFWJqkmPH6AYYSzkEvq.IiyDd0834F9e56KF8svq2z2+3SqTCgJcz+Dopos4mbCnDrwp1hQ1.cU3yjlA0TmFsO9Re2s98G8USXfSF4DS8oqpuMBmpqeRSLF2Dnkp.inaEnilZm8lBZ+DLdsqPkGD2zABTTEPus+nJIS3luxYY3qu70VYkUtIp9CghPCC0pHDeilpJmjZ4uKcN2r4Lu2QmM5b5zQy0USSeEl2JpSHL.poQ+9Q5vh2W217NjCnl2hBU6ntLVkS44i90Y84i7m4mOZaaIr86FP3g9hvLKrE0isKb25vLoCBoMBnewNpr2okugfDL0td1pM.kbpywhHGDnOFXMOw.dFOmQ9Y9tbu.Oi0BuV+LVmcOpP9YCtOmaCWHAiVL0sTqCAytPbQ7yhVi1g.EumHMKutkfK76I3pydG6z2gB2VraWZlTxSUgVSJI18GK4RU2g5RIoIveX0MAhGInUzcklGaQkY2VbZ9qO.GAWSUvn4+NdLn7+m7wfNSdViyh8viXGHtuczqAo3xmSKAzat9ORn.tkpsYkjGpECEzUF4AYDuussxb+Qf8Y5yYk4XNWcNly0li4b84XN2XNlyMmi47wm5bTGFs1.ovKJTDDztttpDCi5bBvj0rdzeg2lXvZ
    

    Notice 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.Q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