Loop Sliders - stop overlap!
-
Hi, I've created a system with two sliders that control the loop points of a sample map. Currently you can overlap the sliders. Obviously the loop ranges stop when they hit the other start / end point, but the sliders keep going. Is there some clever way of ensuring the sliders cannot move beyond where the other slider is positioned?
Secondly, is there a way to increase the step size (in either direction). It would be useful to have a couple more decimal places here to make it more accurate.
HiseSnippet 802.3ocsV0sSSDDEdl1N.sJDIwGf8RHAIaqHZhWPk9i1veMtHwqjLc2orSX2Y1r6r.UiW56E9d3Kfwa7ZuQOytKsagJTpwdAYO++Mm4b9F5FJsYQQxPDt7gCBXH7CIVCDJ2FtTt.0oIBuDYOZjhEZjpZ6AAznHlCBiK9ZsBb4Rnje+bqsodTgMajJD5HI2lsK2mqFosa8c3ddsoNrC4947di5crkhFROYLfmhDST.09T5Ir8oZ2JPP34Z4vUxPKEUwhP3RaKcFX4JOWj5+Q7HdOOlVnJxBRTp51ROGMh0ZQMb4dNcu5bGgfrzcTWnXZW3wj83N7g5G0MdThAiQQjuefKLN7JNF7p92f2DfDNGjJkBokIV1g7.0HKZ77.RGAb4zmBs87PI0WD9RRCI3fPstO8TV6PPXX.qroo4ZFveV8k8iE1JtTXHE6KUrCDqrZkOUobkOWw35l52eh1zkIT54wBmnY8Mc3sE3JhX+drv0LNi5EyF5Hb7GumN2z0SsSO04bTJ5H3pCBXYx29PAJqsA2EExPH3pJ4lXoraBKOtCKDwgjLOYGgrWUTB3ylnM9xO95VnoN3ZWO3uuE5ccZRUT87PFb.HFvBUbcm.2jcFrbkNcTlzjEcpRF.MrFR+.oPCd772IhuH+92fgBW1q94bGkKBSvlEPHWF+DWkVpFXMRMvKgq3MxP9GAnQ8zcrotr0tQYI3eAe9OTRRZIWLqj6R6w7Rp3BjjuG6jJxcRQenthcgRm5ckx.CXPKTcuRcsajZB9avmoosRZZaIb.luarUC7IRmXOpZbRFMyZlAXKYrMa85qHhqFjm48dv7XdqLOSKDWlzkqrcmLFKLALpWj9OfwL95EIs52mYqFAvRj1ueVImuix+VYrhKNY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FW1f7uCMYxZiUjKASu1v1VP5MArobVxXltrxaWHbtr5gc70eXubunvbIozBUxARt4UoL400gBUniPigZErBVpw0V3dEsEFI3QLMhCm9+Tr60OxQ3h1qW8hF+9dnaL3fpf+ye3O1C8lAGPMTayoB5.TLkoMb6t26.14Pm97VU93CXYmYTofHs78Nj5+WFeQ4gAyWZ7ai69ddjIdoiq90twL9z3RCUFzMyLW3Ff88JM+mAJREVk6FW9fqq7cUeLJONu72sn7GQGyDtpeGr62U18xRkG8ScMrKL1TejRkRfO3zlOnTGbco9pyJRci7T2WFAim+OidfgdpnYBpo5jP63+h.vIlJieriXjYby7xWO3i13waJEuOdH2DFudNVaMbzd.6VfiEWp3t39SlvBMqH3N3Ce6syMHP+nZlsiNz5Vyg293SlkLBtWUHCptTxD1NVd0r8VxsaassJvHlLxY72vSQvNVauhfcVDDkPC0p2El2Twdsk637.bR5twlOb0QvlrrUDF2tUaTBbCp2EFZ29eIzta8XB1BLe0Vf4IaAlmtEXd1Vf4q2BLeyFwXu752NynRxON.NF120U2yquzda.2Wgn+AvVkC03
-
-
-
@DanH said in Loop Sliders - stop overlap!:
@ulrik @d-healey Any thoughts on how to increase the step size by a decimal place? Probs source code..
I don't understand
-
Would be useful to increase this to 0.001 on occasion.
-
@DanH if you want a value with more decimals this is a way to do it, increase the max value on the slider, set the knob min 0 and max 10, in the callback you read the value and divide it by 10.
However the slider will show 0-10 so you can hide it's textbox and make a new with a label.Something like this
HiseSnippet 1189.3ocwWE0aaaCDlxIpKRqsXEXusWHB1CJCoI1pcoCnsadwwYynIoFyoA8oUPKQaQDZRAIZm3MTfr+Y6mz9GrcTR1l1w1w0HEyODDd7tSe7iej2wlIx.ZZpLAY4b9vXJx5g1sFJTQ0hHLApwQHqGaeJIUQSv4lNbXLIMkFhrr13WzFrb1Dk86e9oCIbhHfNwDBcgjEPOg0iolXsY02v37iIgzyY8L794UaDHE0jbYe.OaXWFESBtjzkdFQ6VIaj0CpGxTxjVJhhlhr17PY3vVQx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z7wXo4fQ80XeFvXw6Ldjc8NcnApI.bS6ie+mmGUf9MYeETZ+TBTgG18sOqeuVvSsBnvWWHnbccAqR5avyGWVOVy.snhvrA+K7qXxJ5wVESVYzjvIxfD4GBxu5V+Rlsxr.XRj8HNG30jvX73K7sgyTkQ8fGU8gf.8x+oPQk4Gi+ZDyyViXd9ZDy2uFwbvZDyKViX9gkFi98r+bekrW9wAvPy5Y0NsrpKHfxJSEh9O.Jdhd8B
-
@ulrik That's neat, thanks :)
-
ok slightly different problem I need help with now - I have two sliders I want to control eachother in opposite directions. When their values were 0-1 this worked ok with '.setValue(1- value);' but now they're 0-10 they go into minus values!
HiseSnippet 998.3ocsWFzaaaCEGmzILM1aMXEnmGDJ1AWfz.aIstATTDu3jrYzlTu4tfsSczRzwDghzShtodCEHW1s8gZeEF1WfcZ6vtruAaORoXKuXKGKz4CF5wG+y2O9H8SO2MVEvRRTwHb0WNYDCgeeRuIR8v1CobIpygH7NjSnIZVrS5PGLYDMIgEhv3M9by.3pahre968OfJnx.1rgPnyT7.1y4Qb8rQ615Ybg3XZH6k7nby1uUm.krsRnFC7rAoAZDM3B54rSoloUgfvacTHWqh6ooZVBLmCTgS5MTcoLc9mwS38ELiQSTOXgRGF0dHWD1858ZBBg2r6rc9Fo676SNgGxmN9rLvGXc3LSQ9b.tRQH0bMPBmCoMSQ5djdAw7Q5YdL77djNR3.Y.ER04QIctnJ+9Fj1JXFR8dQzKXGGCFSUT+wMZrqC70CeRsZP5NQ67ZZryyjp9Mcdpy0BOmoaqhFojfQ8GX89fapvsPEtKPgegJ7WfBuBU3YUvkBtj4LXrLPyURGkzRrQVrRTO3ZM6BqpXL6g09wZUsDtWBSelYn5MeTlumT6svJVXdvnJasaSEh9vsz5yGxkCk6JgpYIfxsHnbyA0RnxakT4WBp7JhJuUSk+JoxqDT4WDU94nJGMmpzrWHqaias2Vy4+5ZvfE5KawDr3E51T9KtHg0kii5yhyuqMSDpOLeQmstcEcBRyI4lnR1Qx0uXDKy9XkHzTLw77MKQgxRpl5mYDBSUaKUsSVopdBdHKFwgE4ND60YjE9rx7e2fA+w9nasX24D2xy62VCwdyI9pmV6OWCw9yIF8S+0utO5q6bHUSMkpyRDPxYDKVyMmA3CYuFdWWZg6pjCYIWnUifyloW+P3sWYt5MydcHu0joF+RbqD8Dg88yegJl+CP7oBzk7P8PDlf2EiPCY7yGpMVeHnHhlao9nVn0fB2kQgykuCo3Nq7zaITf910kh0Ir9KMrguCB6cyB6yo8YBaT2lXeN+I+Ueetvd0W1ZZH9YT9PbevRydi4YRiG0bsBm6MBGAuCrAVYn1xDJn8ka1qBzkjJbrfpmu0ISOhYNfRay0uhomDYBWOIeOjqQ+TMJrepaKh2izkqCFtXFqr.Fge+++AiYcgdWxQCFvBzy.bSxweSYa4bEg+qTi0b44mP0wb3BA4zwQ8fluCXPzkRlHwb3WwbSN0tgw1jA5wjgVi+A9j4rowFm4r40NgR.AwpWEjV20zm611Q.lj115qB++Bv1Y56Ifay60.EAsb+pf.y12b2dwZbKgFuRnwuDZ93Rn4wkPymTBMeZgZL+amOarVEk9yAXftGYewGFejjB2rr2BQ+KvlbmuK
-
setValue(10 - value);
-
-
@DanH Dave is t-shirt procurement officer... I'm more your executive level stupidity...