Scriptnode xfader Visualizer
-
Hey Gang,
I've got the fader connected to multiple samplers which "morph" between samples automatically. Since the xfader visually shows where each sample is within the "morph", I'd like to be able to show this on my UI.
Is there way to show the xfader node in a visualizer?
-
@trillbilly A panel with a paint routine can do the trick, it's just 4 rectangles to draw + a moving line and dot using the value parameter. Far better than having access to the node visualisation because you can make the panel to look the way you want
-
@ustk I haven't worked with paint routines yet. Do you happen to have a snippet I could see for this action?
-
@trillbilly Here ya go
HiseSnippet 1355.3ocsW0saaTDEd1jrEroEQgdEWMpWTsl55Z2VJHkVZbr2zX0DaKuNAphpJS1cr8HOdlU6NtwtUQhK3RjfGAdB3U.IdG3Af2.dCfyL65rqK4mpH5pnnbNy4mu4Lm+R2HoOMNVFgrJzedHEYcUau4B0nFiHLApUSj0mY2i5qHhgS4jHOJGHPaNOjDGSCPVVq9TsfVEVCY996mrIgSD9zLVHz9RlOcG1DlJia2MdFiy2hDP6yljS5GrQKeongjKmBfZU6pnPh+XxPZahVrUrQVWwMfojQdJhhFirVaSYvbuQxiDIxuOKlcHmpIpg7.CkvdKIOPiXMWTiQLdP2EW9XDXktYghUSBE2vdWV.6D9YgjOwb.NSi7wCqUVFdqtD7pkGdUyAuSARV4fzZIP551d9QrPU1IZ77Q1sDJZz.BD1yCkDYQqL11tgDjPnpLgLltUDPbhFNOrZ0xX3WkVuHHUrjSq3yojHGfQQ3sHVgeEIBGJ33GiWXmgTUC4jPo.HbtIb1MAoyD9YB4g0NSwMmdykMeiN6zYuddfNGj73GWYNkykGUFufNjIFmQMLhREYjQzfW.FrH.kJwTUW3sR0SNUwDTmASE9JlT3LrTw2Trv.YD1g83pqiYOJ0sU3TwP0HfysucohE.gJnAEgGNh.PpZk6sNvB9gM.6Xfu9JsOgOk5TB+EX0HVrly2xBTi.NeyieaV2cYOA5vv25VfEK7NXtGcwVygc6Zk.navdgLf+.MvONA7C0Qlj.lyh31QL0n5ZocRM4ArWTN4hWpz5FkF.Ep5d.NGbw2oxXHY57EK67sorgiTNkdQpiBhHG890Qkw0pnSz0Qjhmd7XDSQ0RTzjALCBhW7Cz5IVSi+czIbyJimsD.W.fS7eRT0kyYgwTmClcm6aj+gvO5nww5hC36t2E2zsqa6lsZ+Tbm13mCWO7ddt3F08bgj+Nsa61nOda2dt39a6h81oUS2d39cLTM85psPmd3dt0atfEta8d020sehbdt8w0w6WuWq5atiKtUau9ZY6rE3FsSqmZyhLAGtZ3E0RXovDWzU3QRti+hx6xP4LDlLUZ5hwHZntVTGjNd8hIwRSX2nWCBmeHzf2YYykd8O6ubvnsTQ6HbLNr3wEwu8QCFbpmk5INM5TOVOUJ57TzQLcxgzn7WWsfPq5k6+ae18+yOdxOoSYNAkhVBlpSHUbVCsPosW0yJRQEHpxLo3iSmT3wYAzHDCFH7A1lPLx.3zIte+O+G+4SP60pIQQVXFvhfWBoQJl9BX0j9JX9cx.nB1MowiUxPXT7IczASm3zqsX7DQP4FeZaC4.nYYy2e9FyyHB1fnawuHI.b1ma2fyf+pLda4qnQ3agaFQFNjIFhNRWqAVz5WrPnQlBJM0OgLAhSfxUuv6eFZ9gw4Pyup1HVMW+xbEifnIrf.NsqLloe4ysiyuGqngdrWaBhu4F+1S+qW+iOYR90fPnIjY42JJd5fArYl8WfB+IwJ.asl.q0fr9T68ho3.5.xTtBGOFrCToMlFzWZjG8eWC.V.QF.6ioVdqD8pXoGnAb9UAzi6EvEYddP8+1pJuqP751cYJ+QmNFW4TvHjR99.ioK3cMa2ACf4MY.bM6s9t2OaygRVFY3tD3oGRDraOchGLwwmBdW.kK5VEVqnykSnqpo0Q.OpHvP7OvW5g0zzVoGVawgPRmej7k9IsBzqP9gFN.lDlsmKXuqlFeRO.a6pUppSzYuz2We8uSMD5z04dWBct+kPmGbIz4KuD57vKgNe0kPmu9b0Q+ORTepRNIob.Xz00zK1xxUPfLKSVH5eAXPvIaO
-
@ustk Thats awesome! Thank you.
I am having trouble getting the
pnl.repaint();
function to follow the Value of the Xfader. I have the value knob patched to a global knob in the network. I am able to connect said global knob to Knob1 on my UI move the Repaint manually. You mentioned "OR READ THE DSP PARAMETER TO SET A VARIABLE", could you show me this?
-
@trillbilly Might be a bit scary at first, but a broadcaster is what you need:
HiseSnippet 2015.3ocyY8zaaibEensoSjR1cS.VzCsG5.cHftQqhU1zzh5M0+Q1Nwnw1BVd8tEFFFiHGIMvTyvkjxVpEAn.8R+Jr25g9In258dseVZN1aaeuYHEIskUrUqCVYCKMu4Mu2u48eJ2LT4xihTgDqRGNJfSrdncqQx3dM5wDRxNaRrdf8NxXdXGlKmrwn.VTD2iXYM+qQFrJs.Q+58qtAymIAdFShPNRIb4uUzWDmQs4Z+Ngu+1LO9gh9439EqsiqR1P4qF.fYd6kIAL2yXc46wP1lylXs3VdhXUXqXVLOhXsvFJuQs5otPZ3+HQjnsOGWTmzBDjg71JeODwHURidBeuloW5HBHklYlf4MlfO2dWgmXL8LSwizaPyNQd6g0bEg27EfW87va4bvaBPxJGjVv.oGa2xMTDDmsyzbMFdIy8yWztgB3PFWqO6L91gvhwmv4kKubUJ7mkVoLvUjxmWy0myBc.Bke1yndbWeVHKV.aVF7MQwzyYgz.oO8UzT41kG2P0OPIgENUf8p.mNi4v9.uaI6Jjbj0W6qZy7OPMHVH6tKSBtWs5xNPzEhX2dMUQMXfwBNbXesNvUNUFuaQszX+2t+WePKf6iMAPQ0Fw88UWTkltNPHOKaU2PNWlsLj6cBbmwK8fHNkQaGpXdtrHvTQi6whotLIMjy7fUbZW8s.ngH7bl+.dNrz1M6F6BGIluQlvb9ikKUQ3U42Pqb.Jsw2mBxrRUfKVX2HfuiqnUPkSJ+NzsTtn8APdWAJ3FLe+1P9hSa2pz0iFIc2SEK5Hb0tukRtbWziKM.l51iI6xipRGD3AXTeuBXRte41t0XdduEEqDPbkJUo4r6UocFHcQg5nEzRkgqD31qARgUK.tIuxngULjC4AP1SL5jeWJLZhTnln.dYjqHdrlXBMmw5nqV9cTgTGwqVdEp3qR70074xtw8.JO8oKUtDvTIz5y7C5w.HrbsmC.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hqOdZzaS3An5yiMmewwqfOuqPlbkyJitKa3kn8n0ZEyCv5A4aOz5L9EFiPdpncZQrfNmbEISlhp+qe+2+OV8ppljS05x1WVoq8m6+uV07XnaGx+tAP5wnLM+c+meVq+1+9etJY5W52OAMu7s7R+Ps9oGfo6jqHexs2pCJ6VZ0eMTJ8NS0Dx0q56Y2rGK5V5w++jtWTOWyDt14pwTxNRz84PUjhYsepce38Zo6MCEWlyZtBIuExzr9XX3MB3pF9bksVzNfyNq3U+AlBV5MtEkpVnvsMa3rCYgvysnKsCsJkbWSOOcc9c.Aee6gcXdfgXrIAolhdxDOymZa95HNU+0Qbsm7NsZY9fnKgmBlyehcnYJjZE345rrkV7z+9q+g+GZYkyfk35ef83udjI5Xt9Py68QMz78qt9fXEj2Yxelj0VGzNNhofc9Q5gBfwJqkr6r1lcbdapM8yv4FyAlDXaaow8kXtXCt6a2Ra5Aqg98rjgExSH4QMS7a308ta2ej3rIjo3r2PoNqOSOJ8L8v3eTF7uOyMTcZRPGZLuulBDMI0+GAJYuKtlVmbdR.CNMNouvSbpqK9jgeA7TkS9LOeFNyWNCm4EyvY9kyvYd4Lble0Lble8TOC9OGIIpCKOBDZtko9t0VRrprtVA4+RQ4A0B
-
@ustk You're the finest lad in town. I got it working with my network. Now to dive into this code and see what is actually happening. Thanks again!
-
@ustk Thanks again for your help! I dove into this and am trying to figure out how I can display it Vertically instead of Horizontally. I've got my samplers stacked vertically on the UI and would like the Xfader Visualizer Panels to display on the sampler it corresponds too. Is this possible?
Or maybe even possible to have it light up buttons instead of panels? Like a small LED "Clipping" style button. Just thinking out loud here...
-