Script control of Arpeggiator "Note Numbers"
-
Hello All,
I've been trying to figure out a way to get a handle for the "Note Numbers" SliderPack in the Arpeggiator module so that I can dynamically control it's values with incoming MPE data. I stumbled across information regarding how to set the SliderPack data using the referToData() method, but I can't figure out how to get a handle for the Arpeggiator's contained SliderPack that I want to modify. Am I missing something basic here, or is this impossible?
Thanks in advance :)
a
-
You need to create a SliderPack on your interface, connect it to the arpeggiator and then change the slider pack on the interface (you can hide the slider pack if you don't want it to appear on your final UI).
One might expect that there is a similar system like Synth.getTableProcessor(), which gives direct access to the slider pack in a module, but for some reason I didn't add this yet.
HiseSnippet 1429.3oc4Xs0aaaCElJ1bc1YtMonXa.6Egf8fCVmqcujsgggZGGmNijzXDkls9TGiDsMQjIUknRiQQ+OteG6o9OX6PcwhNQ0Qw6Bv1zSgGdNG9ctebF3KroAABejQkim5QQFeB1ZJWNt6XBii5uCx313CHARpuYLosm5QBBnNHCiROSQvnRYTz26e51DWB2llQBgNQvro6ylvjYTGzdOlq6tDG5wrIZb+318sE7tBWQHfmR3lHOh8YjQzmSTrsBFY7Q8bXRgukjHoAHixaKblZMV7FdL+mvBXm5RUGZgr.EESdWgqiBwp+F0cLy0YPpcGfPF3AYdgRwdg6gOf4vlQOyarVzElYRn6OLVYQvq0RBOCM3UNFdqisr8YdxraTXaUbeNDnFRfPfNrh4EsxuYf6J.N3xFSHmQ20GNLSh5a0r48MeRyla980pVq5Cdf4KEglbJ0wTJLs8ofIYRLsbYNT+APbwjvcLcY7yLYREKSgnlYGeO5nQLB3DZTqJDMCjlmS70Dqk4OXlhhQTYWwDOAGNTeCMd1HFDLNnep4vPtsjI3lB9dbwosTh6KbqamJ68g2vMjtYspusV0JZ5oQ.U1w08D0sA0iYBz76hzd9nH5E1XSkjIuSWhq6of1pO+yqTjFxdtPROjWeypusZkpuqp4kuZ3vbuKQYtT+buVUf3uHAqyCmbJ0O0CjxHjoLep3pEKUzN1mnwnf2myjG5QSNmkrptK1pSusIZlwpSJyF0oFYZ4vV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Jaak69qA+S9x7vkPlGsDx73kPlmrDxr0RHy2rDx7sKTF0uJnSnTLItTDHLnWz+ADCidbBjIGk0i9C.juc.1C
This example controls all lengths of the arpeggiator using a knob on the interface. It shouldn't be too hard to adapt it to MPE (although be aware that you can't create arrays in realtime callbacks or you might get dropouts).
-
Thanks for that, I do understand how to create and set the controlling sliderPack, but I'm unable to assign it to anything past the first sliderPack in the Arpeggiator. In the widget inspector, there is only an option to set the processorId, but not the parameterId. How do I discover (or declare) the parameterId so that I can link the sliderPack to the proper one in the Arpeggiator (for instance, the VelocitySliderPack).
When assigning the processorId to the Arpeggiator, it always links to the first sliderPack (the one for Note Number).
Thanks :)
a
-
@amounra use the "SliderPackIndex" in the Property editor, 0 = Notenumbers, 1 = Velocity and 2 = NoteLength
-
Thanks, that's exactly what I was looking for.....don't know how I missed it!
a