Direct access to Arpeggiator Slider Packs
-
Hello everyone,
I know that it is possible to get direct access to the slider packs of an arpeggiator. But I seem to be doing something wrong. I get the error message: "Line 11, column 26: function not found".
Can anyone tell me what I am doing wrong?
Thank you very much
OliHere is a snipped:
HiseSnippet 1328.3oc2X0sSiaDE1lvrpITXAJpsWZgppxptkMoktsRqpH+PXKBxRTLKs2scvdRxHblwq8XJQU6yVeE5iPeD3Mn8LicRFClTi6tUaqu.wbl47MemiO+4zKf6PBC4AFlkOchOwv7CQ1SXhQsGgoLiC22vbMTWbnfDXEKp0DebXHw0vzrzykBLKurg5458Zg8vLGxbQFFmwoNjioioh4R603Hpm2AXWxozwZmd2FG5vYs4d7HfOkP0L7wNWfGRdAVdrkPFlOniKUvCrEXAIzvb4Vb2I1i3+BK97mQCom6QjKpaXC.EK9.tmqjwRoFsGQ8b6M0tCMLLQ8l6EJE6E1B0k5RmIet2Xc0FVy0P2eXtTZ5UJE8pqSuZZzKCJYpQokiozFHam.puX9NR9rB5PF7xY.Fb65TI9rFK0YITaNbBlXmw3KHGD.KloQ0mVq1isf+7nmUoB35CEVWhCrZEIDbVcqu2ZppCIh17w9bFrn51I6ucZsZF3SFNjhA6WppJJRpnsG0kDzCdSNi4U2V+vRblCCiKHuHZLff9YRCTUEgexSjgjrgD8SFZ8hX.Nm.+erJxnnJTlGkQrFDwbDTNyhyRLCoMFv8p5L0.eLvCuHxip7qUJmvlcBmd8MAumK4pp0ldpmU4M.W9abTR8Stm1XOuyk1vMI.fjF4jVwIrpJRT4MUrt4VCFj4dIX4QBxbaY9VvhTrJS44zcAxCBAgoirQ2cjsdhmSraQ6fb1gLp3DeB6tRGMR7kxrfDVAGUnxAVKIGH1yYPgP8xnD2nghx50dLd4g6iE3o.AXB2iOIPPklf49jKgZSwIWkQ6SBuPv8UmM4EHX043ZuZ1U9y9MlLaweLngwsShgxGb2HOYjpdMEYgzjMfWGoRjkIqrPpXhdg12ZEZxKE2.0iJbFkMGWJCNBN82EbLo77pnNCFPbDyI3xnC9o2M0h0u90hu9UP1PsDUEN0k+wp0V+H9Rh0yILRfpl0BZU964sUoetaUdhi.t9SCvrPedXJfsIiomBQzg5BeYHzLf759x2l5xaywAYt006c.XjYpiMVDEnBKZNlGwDoBCJsnV10KXK6ke+tk8rvTsNSICSo2UKMSJkalTewAryKf9Q4n.5ZnXVjH51UQyAFqh5SfVb2aHh6opf3gHnOqsf3mH6Ffb8d4ADHwDPPwkhwh0U.XeA89SCM2AfBOPbDYR3+DOBXL9Dh6QL942DfOuws.X8D.ftWmyawuRAwlHaxqiHPglYhKjecUTb4k9xwsJl0TFYOJZv.ORwhvVA0gggv+SojEYBIMr2L08KGYTAxVnokB013VzwUNyfYEzt6D+Xje3Oi3wcf9f2M7W+a5vO3KZ0L2vuI5XBanXTtA+hTfun3jMPxIoYDOahGzVkmm39LA5SPmDI7iDukfaCT2dcfBhASA7VusxYhvCk.0g4dGvTqQdhAe.5GftRYD+99+bdo5NUdJGsoi88HcXWBgsfDIG2DFDd.NxSLUZ5lTc4Lt+HNi5n6.5SDAzgCIA5bOSCpoPHiamIYqF8gPDr97JeViig4LvAfehTPeQ868GWm46qOEESWK4rWV+2c97R++d9797HAkMrKFBBgOFSMGALVLzyKNYW94plKIayDutlbc7bwLW0h+DdR1rtbsYxl0mt4+J2wXrS.+UNw0gjwoefRBX2L0u+UYTW4ZqYeoKBUamZFiggaekiizE+kvrxYqyWU.c95BnytEPmuo.57zBny2V.c9tEpi76JZFI3iiS4.A85n9EGLMimVQEoa7W.nuLeK
-
@Oli-Ullmann what do you want to access, the length, set value for each slider?
can you get what you need if you make a MIDIProcessor reference to the arp?
Synth.getMidiProcessor("Arpeggiator1");
-
@ulrik
Hey Ulrik,Thanks for your answer!
I would like to be able to control the value of each slider of the three arpeggiator slider packs. And I want to do this via the script and not via the property editor. I think I had already managed to get direct control over the slider packs of an arpeggiator, but unfortunately I never saved this script. Using a Midi Processor reference didn't work for me. But maybe I'm making a mistake? Here is my attempt:
const var Arpeggiator1 = Synth.getMidiProcessor("Arpeggiator1"); Arpeggiator1.SemiToneSliderPack.setSliderAtIndex(0, 1.0);
-
@Oli-Ullmann I know only 1 way to get direct access, and that is by using ScriptSliderPack components
connected to the arp directly via the property editor or connect them via scripting.
In this example they are connected via scriptingconst var Arpeggiator1 = Synth.getSliderPackProcessor("Arpeggiator1"); // Use sliderpack components for direct access to the arp // you can hide them if you don't want them in your ui // it's possible to access them anyway const var SLPs = [Content.getComponent("SLP1"), Content.getComponent("SLP2"), Content.getComponent("SLP3")]; for (i = 0; i < 3; i++) SLPs[i].referToData(Arpeggiator1.getSliderPack(i));
HiseSnippet 1743.3oc2Y80TabCD+NLJSsoIARyz1G0vzowLg5XCoIzR6fAyeBIPrKGIocXxjJtSmsJmkNtSGfamLS+nkOB8iPepOmuAsqt6rsL13XbSZS68fwZWs68aWsZ0OYpEHroggh.Cyr62xmZX9gHqVbYiJMHLtw1qaXdMztjPIM.mHZsV9jvPpigoYlsTBLyNoQ7yqWYMhGgaS6Jxv3oBlMcGVSlrqzZkeDyyaShCceVSsYe2xaaK3UDdhH.OYPEM7I1GQpSeLQMsIPFlWYCGlTDXIIRZng4jqIbZY0PbJOY9OkExNzipFTxvBbTh3MEdNJDqjZToAyyoV63NzvvDUqaVHSRV3lncYNrNx6lMlNVAtqE54CyI5EdY5AdkzgWQM3M.HYpAoISfzLHK6.lurqFEdlBsMGVbbIPZWGJIy0Xh+HCph.lAWVnI4H5lAvfNVj+dEKNOF9XtkykCR8gR7Ij.7ZQRofWB+s31lVmJqHZ5K3vf7ylpe1dsZ0.eZ85LBD+JSiqhTFZ4wbnA0fUxNHO+r5SV4mttgKjzGG0D7f9b50Q4iA7ctS1mDRwgwhUUJX61XLD6JBvNr.psDSrUuUrTfkMnXRfuxxVhHrMgia.Fqj2DybwJgNB9sj3SIbYpXtRb.NhoLiIuUH1WDFuNpbYamqlJg25TRKsXwZmZgPfbvfSifVH1mOGtumKb9KbIm+hyN2ygLkJYjmAHo3xXF9avKB+412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7PwZhyhcAbjH83HJznoi3wJudUTR6k8T20Z7hlrHqFQttdzwqBaJzFbBT9uOiNrPX3rOuIpcqPMEumxk+lnmR8D1vgpCBqS0GV+2jU+MP6P40kMFsr56D18iz1gYPpes.N0yh5ArGDix16A5nOAUMR5GIeK4tYP6VaCnuePaG12djQb+90UNZCtyE3lhkGksZWA8.3v2ArM88e5r8bHb11Xzh0z2itA+DXCEHQgwa.WwykD4IaKs2yh2UvE9MDblsdBXOpLfUuNMPG6CLfVUJUaB5H4lk2CJQH5zx9rx6.zoHAPdhNl4hRW5e41Atd8onD3hUTLw+28ZHY9+80P1SDIY756RfhP0MPUzk.1+vQ6Ia1CaeqzzwEUiSn+ychG7mvSpxRsu0sRYo1J+G4czjXGHdgcReHUc5GDKAhad7+bkrncUiwC3WoqIvi+E1185p9Lbgw0vEGWCu63Z3WNtFduw0v6OtFtza1P00rVMRJZlr0zv.NLJ92byzLg7V7NBi+BvA2cm3
-
@ulrik Thank you very much! :-) I was familiar with this method. I was just hoping there was a solution without adding additional hidden sliderpacks. But then I will do it this way.
Thank you very much
Oli -
@ulrik Hey Ulrik
I'm new to HISE, and I cannot for the life of me get the sliderpacks to control anything else than the semitones in the standard built-in arpeggiator? Whenver I select the option that a new slidepack should control the arpeggiator, it defaults to the semitones, and I cannot for the life of me figure out how to change it to velocity or step lenght? What am I missing here? :) I would want three sliderpacks in total, one for semitones, one for velocity and one for step lenght, accessible through the UI ..
Thaks a lot in advance!
/Elias
-
@eliasbor In the Property Editor on the right side, click on your SliderPack and change the SliderPackIndex (near the bottom) to either 1 or 2.