Macro for Sliderpacks?
-
Hi there!! Is there a way to assign macros to sliderpacks?. I.e. to be able to macro-control the 3rd slider for a given sliderpack on the front-end?
Thanks in advance -
Use a hidden slider
-
@d-healey I want to be able to change the # of steps ... so I need to add sliders dynamically based on the step #
will be a mess... what do you think? -
@hisefilo How many sliders do you want to assign macros to?
-
@d-healey I have 5 arpeggiators with 2 sliderpacks each of 64 sliders. 640 total
-
@hisefilo but there are only 8 macros
-
@d-healey all of them will be assigned to a unique macro. Lets say 1
Meaning you move the slider for macro 1. And the 620 sliders from sliderpacks will react to that -
@hisefilo So 1 hidden slider, connected to the macro, and in the slider's callback you update all the sliderpack sliders.
You can use
mySliderPack.getNumSliders()
so it will still work when you change the number of sliders. -
Or you can use a global cable.
- Add a global mod container
- Add a macro modulator
- Connect a global cable to this modulator
- Register a scripting callback to the cable that updates the slider pack for the desired index
With this you don't need a hidden slider, plus you can use the smoothing parameter of the macro modulator (if you want).
HiseSnippet 1096.3oc2W80aiTCD2aR1SWBbHJvSHPZUeJmnJpgqzCTEh1lldJBRaDo2Ij3gJ2ccRrpW6UdcZaDhOhHgDeQ3a.Li8lr61KWatnphD4gnLd9i+4wy7abFnUgrzTkl3U+rYILh2G5OblzLoyDJWR5cDw6i76SSMLcfaoCmkPSSYQDOupuBWvqdMh8ye+CGRETYHKeIB4MJdH6m3wbS9pC1+G4BwwzH1Y73BVuy98BUxNJgZJfmp9aSRngWRGyNghlUwm38jtQbiROzPMrThWsCUQyFNQcszY+a3o7KDLTnMYHDH2xGqDQHhwUIclvEQCletSIDO+A4Ygptrvm42mGwWrdd13isJBx8nX9vqRY3UsD7Z+tf2RfjWAHUyAoM7GFp4IlbMHd9.+dR3xYDER6EghyVRkunheGEXgzzJldI6XMHrvil6t81aE.e878Zz.R8olfqn5.cbv2GzUNlKYsFyLuRntfJ9Y0TCWNtOUBWH5lk8HtM3gNFstCENgM2rOMTqZuIXVb6VfgRVn4LkKT8UQSETHOAl0dysBL5orxwanfGwzCfaeLvyO.XzUwIJIHzbyB1faSCMab.VuzSFwtA7ZGXMtT.GhfQSkgFtRFnjNb07Jp.1yF+Vi5EBSqTlwIdfwFklKh2VANO1qwu2.OQvlwwlhNTg3Bvnlyi7VAP6S3IJCeDOjha5y2qv1CJXmJaZ2YHTA2V0nQKUGlAzJg.S7KQM1FouKGaJmFeASO+TL2Pn1pbA6SVsB1P2ERACUxdRt4zDVl7c2wQxtQwB8LDBPwXKy+jrx776EBGBzy7KbQQrGCnw0CYNhnFJw6W82cmVvmQeE9820A95EmZkGLp0Aurf7s0euxDxq6cDtIYvEPNbZRXZCGSZdGwtBH4bco08OhkdoQkXsMqX886vcCdv9C3fMC+weYYLeK1.fGZdWTQxIjQNSAT.ThQ.65kobyrhL1uGLVaemLVqJD2ve.2DNY4XrxiGFy34ele2Qi.pob.Vy+3eYcI0W8s+ots+y8uEiHVdAHg4H2+xL0AKzGrvf12wj3+bUmDmrxSh8p9PMZq1+ASaeXpc+z255H8QrCqzaBpu.l3TmE3IqBte66GWGxSTBpF0+5T1YTKFxqVrw0N5q3pCiUJyjx0J78s1Zifkkz9PsGpWB8fvqrrL.g7+FdkEOMyn43viSlFODZbCYvtCO7RjhyQpficcxaix1qSlLxJ7OvmLksQYuLksmq7QYOhw5nyCcOH.q3epcE3bKs+Af5tp8fEy+y+CEw.Mw4ggyCkmW37WLEcdBUCtCOVCdsLNs01eTXQeupHU37EN2sYajsY48VwEoXI.ZuoX+jPccQsS3imTTc5krqKIaXIEsmKuBdOgqxPynQJoXFNQjr7TvWe6T.fmxof2giuXccbm00wuYccb200wWttN9s2ui37nClZTwNRFfnbPWGqmWWIRAZuAI+K2rMM0A
-
@Christoph-Hart @d-healey thanks mates!!!! Sorry for the delayed answer I was out of the town.
This works neat. But I need the user to be able to assign macros with Engine.setFrontendMacros Is there a way to do that?
HiseSnippet 1536.3oc6X80aaTDDeujrzZWZgR4Ij.cJhGbEoV9hSbhUET27WEZRqKNszR.kt4t01K4tcM2sNsVHjh3MdhOC7NeHp3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