Script FX Panning
-
@d-healey The pan law needs better maths but the mechanic is here:
HiseSnippet 1620.3oc6Y0raaaDDlTxLMRItnMHAsGWHzCJnNNhzIsEIs0N9uDm3eDjb9AnvHXE4JoEhjKA2UNQIH25yPOWfduuB8UnOBsm6k7FzN6RJok1zJJJIMsAlvGzN6LC+lY1c32ttdLykv4rXCyR6OHhXXddqlCBEcWqKlFZr05Fler0NXtfDiRDs5fHLmS7LLMKdao.yRyYndd4xqh8wgtjwhLLd.i5R1lFPEikVek6Q882D6Q1mFno80VYKWV3ZLeVe.OEspYDgc6g6P1EKUqfkg4Y1viJXwMEXAgaXN2pLuAM6xdRXh9Ofxos7IxA1FMAGkHdSlumDwxearVWpuW8gwM2.bZ8wYghIYgKZsC0iNR93rwmnl.M1B87gYgIAOac3UKW3YmC7LzP2bInC.AyquOVjEYxxQ5DTV1J0VgBRHmJFnWtduB2O0pNU31Me7VHG7BEp203Ms3Ou0FsaSbEiA6bVa9nYsR+ZrPz734txVMcioQB38KAx4SGh17Q1Y.ThXiBgej0UuJZsXhDWHLpCDBn.YRlTF1bwEnCwwHeZKz2g1l1JFGSI7E8YXupUbYwjJW9lZ5IsdaaPUvfEcUNUUvHUqvCXLQWh2ik5PhOtcMlQ611YFeeSsckgLTSh.AhQISSC6fDPuHjfgbpUCEvKmD5KxIh53Xn+CzArZprlCsQ19ZAoAfSSB4iqeiIn+1N43emI3+bzuwInuLHwddpfrWHqU40Xx8TBoGtCg1oqn50A8lurVZr9s1UVzFpIX98.KqVQJuxBnZvefm0bDrdMhDKfkPaFyBtay81cjxOe9xH3oR.0yymTmAalgM4UtAp1h0VXzbRAWwVSB9ofDPP4Wbbr4bBXyAdc1WepQmyaGz0tenqzHTTLIBGS1mU2GOnJGGD4SZ.q.W.k7adcR7p9L2dWt7yU9ApLaEBuPUsIBLpE7YNDOh3xKWJcM1z6zalXSiWKalubozWkyL7pd8r4Ek0RUp9apYp51EGFR74Zokf99BZj+.DUfdBUzUaKJwKoW1gX+9DszTNN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alnMRtB2pufEjryADTeC0cOZZlvcRsIx3evZrZQo
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!