Sliderpack issue again
-
Would someone mind double checking that I am not missing something obvious before I ask Christoph to re-open the GitHub issue.The slider pack in the midi processor works correctly when you change it's values. When you change the slider pack via knobs on the interface, the midi processor's slider pack updates but it does not always change the destination of the slider pack.I've just spent two days moving all my midi processor scripts to slider packs so I would love to get this working correctly.Sorry. The only issue here was my code.
HiseSnippet 1738.3oc6X0saaTDEdWGuoXSA0h3Bj3lU9F1zFbrS+AjBHRhSRaTIIVMgnJUppFu6X6QY8LqlcbScQ4Ntfm.dl3If64I.dCfyYlc8tqiiqwMvU0WX6YN+Lm4672LSaovmFGKjV1UNYTD0x9lNGOhq52pOgws1eGK6OyINjEPksI9mch3XeIKRwEATqsGEQhioAV11K8Hja6Jksze9quaaRHg6Sylxx5TAym98rALU1rs27Irvv8HAzSXCxw882beeAukHTLDrrkbZXEAqNoG8PBxVIGK6k2MfoDxiUDEM1xt71hfQG2WbN2v+orXVmPJNno0wfhLSumHL.sXbVqV8YgAsSQfXKPKsyvikL3wm5b.KfMd9Lb4VZBtYRjGOrKUz7Vpf40Lu40Hm4MESZobljiwjtsiwKjQAsmJNOJTzgDFWvPNb3fiG69.CwwtDfuF4sr+cmdZYb68x.hhzz8ac2k2iwo08kTvx2hG7TZOVrhJyzxN.mdMWYitC49Jlf6J3GJTzi3dqT8mpVo5EUcmjT2tSkVKAWIEggT4TIiwDxYInGe3fNT4ptuhDNjNlQvOVD8ctZzOevADxonbUNFE784L0QQT9UExX0xHD7ueXeDY.Wlcxb.eQTohglf8NzWAw+FGXEmcnwmoDQPFPl2s7r7teny9fNkcI9ES7R7jkhK4jrp0GPNitmDFLVBuG1nwptvWqrQ0pvtLVAHlz8LdmXvi+7W.y1UHc8XvnFa3xb+F26C+b26pgTjsmydAPKcEHAAOgK53UCHUy8ttrUcA8ytyCfEnxXApGSUINpVjvvNPnimfiDSlErlKpVcs0NWHOK1sqTLv0TpwEy1W0syPkaffF6xEJWjICOrzsUcPVUeZdg.ht3TCvTynTDzcXT.FIXTIKSqfBH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giTKMslgwbA8iu1l8x6Q7AfZTahpOlWfUxg.OpDOdQR.Xg0Nyuqit.LsMQRFPgiHFavSTwoOxlAK.CYftxD9DaKgz0w9YxguQV5njMriyQbp0AL9oIU6cf17VGPd83wvALrJLPWhlS0wHEVfwp7jyEWup7FNmzWRulsykc1CAu2Mcl0kxjZiifBZkLNz8iOEoBmvMUMPTwB8TS+ejfLf3KEuz2jyianOPOCDKw0ubaEmCvwtYGMPCX3y07ReerB5WBk7ltLqu.xbuEPl6u.x7fEPlGt.x7UKfLe8LkAeD6sFpDCL0mfIZuqN3x1dWNAJ8p6aX8OT0Z2KA
-
@crd There is still an issue with slider packs - see my other thread - but for your issue I think calling .changed after setting the value might work.
-
@d-healey
Adding .changed() at the end of the call back in the midi processor doesn't seem to make a difference. -
@crd Actually your snippet works just fine here. The problem is your index is always
0
but I think that's a separate issue. -
@d-healey Are you sure? Sometimes it works here but sometimes it doesn't.
It works correctly when changing the midi processor slider pack, but when changing the knobs on the interface it does not update the scriptFX parameters.
-
-
@crd Check that your
index
is correct. -
@d-healey Got it. I see what you mean.
local index = g_data1.getCurrentlyDisplayedIndex();
returns zero always when being triggered from the interface.
I'm surprised all the knobs don't then change the first parameter of the scriptFX?
Is there a better way to get the index?
-
In other words, is something broken? Or am I doing something wrong in the code? Possibly both?
-
@crd Something is broken but I don't think it's related to what you're doing, I think you have a code issue.
-
@d-healey It works correctly if I call it in a loop like this:
HiseSnippet 1706.3oc6XEzaaTDEdWmroXSA0h3.RHgV4KrIM3XmzTnJfZRbRJQkjXZLQTUUUMd2w1CY8Lq1cbScQ4FG3W.+A5eBNxQNhDRvINvO.j3e.7dyrq2ccrCVtsbpVJNdl48dy27du46MyzHT3RihDgFlEaNHfZXdUqiGvkcq2kv3F6uig46YE4y7ngMHtm1TbraHKPxEdTisGDPhhndFllycWTZyhyan9722YahOg6RS6xv3DAyk9ErdLYZuM17dLe+8HdzlrdYj9latuqfWW3K5CHaNqpFAvrS5POjfhUvxvbgc8XRQ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mBemKttceoTvcJqFBBpqVMNrp5.suSYVzAhdf7jvAfD0pnxutXjUowzFZuPj8h0zVtpdlJNhGaBQ5hWV5wX0oHldLYWr1kLAeb1EKL6P9DDtdco07kVKLrL07Zly2IGyIxlDydhorIkprLmCrBFuLLeeqZ2phWy0V+1eyC7ev5rmTkU6n0V+K6b6JFSrHnNmVY4qXoBT4qBp9LSUAKjoXvBSyR5hUBSkSwlfci8qI52pmnOOy8Pu1lWR4mwrLUl6myNcY16l8dvioDDbuQgWeehL+kIwaPGO.jokqJDdNddDSlyxuztg4zBwqa0fIc6NdLVXLXDSLeEfw36k+VV5Jqo.bdq895WQWB27h9nRVIjfwGgHs.+3NBg42akRiDDRCHgzlhFP4NmHRu.e58ALtrcKnJ4o34XtH2SfFBaiR3f0u3T+nYghZgo1qT6xCJ2WzWx3cNf.7+3NB7sFD8Cco0iQWxyMD2t5v8lTtmpw+.ehGrVxNTbvZICl450GRkmIBOUENh+MDLz99chBR5ZKeewY3lYVbVJDCT80P3OHnqfybwtzRjfzD9.MbMKbH99VlKrGwEbTCZPjcw7ejkFR1ng3wGhS5xM2owcUFE3SaPBI8nv0viz9SzvIOqk1W..omh0AeTq4vwU46o5guJURq3Erk0QbpwAL9IwL4VPIbiCHOcXa3vCF4Znne4TUNRtIXnIadl3kqIuhUytgzWx3bAq8Pm2KlMSq.o2Zis.hqB5.59QmfiBmVMwLPVw1Bwo8HpzuY6gd9+XyROhan3wt58+3h6MT8.4Ub06lVz5.rsc5Q.TNudLO1iccQFzOBNow30Y0YPm0lAct4Lny5yfN2ZFz4imAc9jKUG7ws1puTzSyUAczXWUxko4tbBPCqpgX7u.FXwRB
That doesn't seem nearly as efficient or clean as what I had before but... it works.
Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?
(also, .getNumSliders seems to be broken as well.)
-
@crd said in Sliderpack issue again:
Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?
I'm not sure what that function's meant to do.
-
@crd Regarding the index for your function, that's what the
value
parameter gives ;) -
@d-healey said in Sliderpack issue again:
@crd said in Sliderpack issue again:
Is it a bug that .getCurrentDisplayedIndex() returns zero in this context?
I'm not sure what that function's meant to do.
-
@ulrik Yeah I read that. Still don't know what it does. All the sliders are displayed at once :)
-
@d-healey Got it!
Thank you. That is what I was using .getCurrentDispayedIndex for which was incorrect.