Change Arp Note Lengths with Knob
-
Heya. I'm trying to control the relative note lengths of the arpeggiator with a knob. While this works in Hise, I'm having trouble making it work in my project, compiled plugin. In the compiled plugin, reducing the note length with the knob works, but increasing it doesn't. Here's a snippet. Does anyone have any idea for an alternative solution, or to make this more efficient?
HiseSnippet 1852.3oc4Y80babaD+NICOVTkI1NNSxC4AzLc5PMVVgTNoIYbbL0es0XKKNhJNIOkA5tkjn5HvEb3zepGOS+nk9MneD5y8o7Mncwg6HwIRQelMNcZCdfhXA1E+1eXA1ETcTx.HIQp77W5nKhAO+eGo6EB8fsFv3Bu811y+cH6yRzfhZEs4EwrjDHzy2ewGaD3uz07xZ+7i1jEwDAvXQdduPxCfmwGx0ik1o8S4QQ6xBgi3Ccl8m1du.oXKYjLEwyhjldwrfSX8gmyLSaAhm+02IjqkptZlFR77u1lxvK5NPdlvN+WvS3GGAlNs75hFxJdWYTnAwFodaMfGE1ovuS777IcFyBKZYg6P1mGxGIeLabyrAni0vkO7WXVvqkK7ZVc346.uqYg2sHcCT7X83QLXaYxdBbipGC2BbgkctdK72Hjsj3LD50FxNA1UgcFoQi62r4pT7iUdP8Z0qgaDIZ5oLEsaG5CoE50GzaIGFKEXmFeb2HdHn5faRs9XiZiU5DwwGBQOCDWotilQlli5sVBneAKJEZzrrEGFFg1ZGQet.VKPAHCa1IdFOQ2vBYEzmp4w3rZ9.aOdlbtHB0g1KUDn4RAUJFsZFnojQMBJv0p3ZgK9J0q8x50VJRFvhnIFuLAMa2NFe34oCs9cBttzO4SPQTQ5Pprmclpj50nXy9YOoh1f+vlOfx+pGZsD906d2UxG+k1+XZVSYsgEFITtPKoLkhcw34gLwXVhuZNrrXJS3F5F760ZECqXl+qbwikf1moGr1PtnA1svkef6z38nMxDS+ZiJqffyH6Dg7X6zo7DZrLgq4mBqlCZyo0BfyT.Uw3XD3D94URIimhyrKPyU4k+9G1zftjSPGSO.J1Cnmw0CnMyAaCyZl.+XJHB3h9z3TEBdXkxKiogKSRwxrAd5HDN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JChd20T34W9TrPz6m1YF8qLHtcdYfUmGpdswUJx7VD7BZg.h5BQXYExpbRapF5CHGjpiS0+BYtaQ1uyN3UvpBCNAuTwiduqwP6HBuByzrcUh5uN4IXdvobh4Ws5e+kIe3REXrKeXbDri3T7H.JwfwaiOPpGKMRWHsbZw8kBY7.ofWpphCAsh2uOnbw9TcnMzZSz8HI2oM91JyuhwXQ+g1OiK.lB4IXN4hVUmKl090GRrvkZJ3j9+GuaYwey+tkYeBEqI++c1owaaSBVmlscS+u+98gxTMWzeeFda.9xlrRHwGkgk6Xu007yQ4ufoBCa+ll9F3zEDgYc9WXKevVl994C1pXveUVigr.k7GBrIDLWXbiLIneKx9+LsDYeSe5neAKBo4ZM8Fhuq4GBBLwz2C4moqy5ygN2eNz4SmCc9r4Pm+zbnymOG57EyTGySJ2HUKGZi+QAc1I6mDz22VnZ1QAu+MeF6i..
-
@dejans What should be the knob behavior? don't you want it to set the sliders from 0 to 100% below and above their position instead?
-
@dejans Try this ;)
HiseSnippet 1884.3oc4Y80baSDDWJNWo1ECsk1AdTSfGTHgfsSAJTXpcbbJgzznINDZegNJRmsuF46TjNklPmNCeM3aS+HvGAdlm3a.rmNIqSNNNJFJL.5AGs6c6d+1+b2tmhU.yAGFxBzzKu2o9XM82D08TJeP6A1Dp1lqqo+VnssC43.CIq0N02NLD6poqW5ABF5kmWK942t+Z1d1TGbFKMs8YDG7CICI7LtVM2h34sgsKdOxPkYemla5vnsYdrH.OkP0z7scNztO9Q1hoMGRS+JcbIbVPWtMGGpoO+ZL2S6Nf8bpb96SBIG3gED005BJRxdClmq.wBtZsGP7bsRs6PMMcjUlWnjzKbKz1DWxH9YdiqGOfQlDp9C84lF7pewvq1jfmtB7lWBuaf55DP74YiHv10PaRg.UOaHDnBK4b0l6mPn1LXFT9JCsODuQ.PLRByUqUaYC3mEuW0JUq.AhPtww1AFsB7w86SrA6ptwWYDmcrReLOmCxbA0osfPGYZnqGwEGXAwRgBRg.nh1rg9LJPXtfxbNWo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1wgCPXu.aZnOKDWWUyiMVC0wVGyin4mtjUtYILuM.ySYdWsYJyFpLsro4TFPmSSaSNQkrC0FBHcwf03tSnCXrBeWNEDA8b9chMnJ58WteF6Fpr+Z6.WHt3jKAszqiKBdkWW2SsTwf2Eb2zQaZTN8K4KHj67vbHozeQHQoql247ZKYsHNGNdgDeDsDEIrFqkhD0cA5nJZWwQyWZUnTJ9sQhaCJpkJ4MisXIzPLVlMTb8XEz8Px4.ie69Ewc.ZgEv2BeZ3eFOBXL9Xr6VT1YZ37Vm0ab8DE.k2OfsF6jXU.U1wGEggy5Fwt3FjBTphjmhsq3tGyl0TF0cPTudd3YKC6ZH4gU6QvSyDldyy2BbGCI6Ac+nLvYfiROzWhGshCh8wdLGnNdgAQukDMt+4as9JqrZj0TnKLHtYRqoEDBOqaqGKu6vwaszvmYcxdc5Hos1rV6AVzi77a8jc9lCtaashkYdCDb.Mkh85h8f1JXEYm1DUz6h1Ih6Gw+KRc2.ssUG3H3fTEdF+RA2581BE0g5dNpoVyhj0eEzWC0AmvNl+15+sTwZh6BpGVNEicIC88vcnGCaA.NBLdS3Bk8ri73obyWVbaFk4OfQI45pXWLOfzuONPE6SzfZw4hrakiNg66gsCU7mePyGRnX6.vOgmQewkn2foEudOjDtFhFNM9uw8VJ8+96sL8cnPO4+6IRCm1F5zvHNba7Oe7dWVDmP6usMbZf3ikHZgDtTFzti7TWwmOTeNQGFR5Zoe3otXpaLwuCOICVWPqmLX8zA+aYMFZ6Dvdpirff3.iqFyAraZ7+uuxnsEzFi9heHTsUpI97Wjm53Hxo+Hv+LYYZLCxr5LHyclAY9jYPlOcFj4ylAYt6TkQbkxVQb1PY9OvvpS7mPUWW1nZ7VAs+.csjv8
-
@ustk Hey, thanks for the input! The idea is to have the ability to shorten or lengthen sliderpack values but to keep the set relative values. If a user defines a pattern and number of steps, I need the option to be able to shorten and lengthen the notes of all the sliders with the knob. Btw. I managed to do it with a normal array (storing all the predefined values), but for some reason doing it with the (faster!) midilist doesn't work in the compiled plugin, not sure why yet. Needs further inspection...
-
@dejans What about my snippet above? Is it what you're looking for?
-
@ustk Yep, it works, thanks, I've just added a bit to ignore sliders with value of 0. Much appreciated!
-
@dejans Perfect, that's what I've done after too :)