Customize the values shown in valuePopup
-
Can we customize the values shown in valuePopup (for sliders)?
For example, in a slider with a min value of 30 and a max value of 300, if the value is minimum, "OFF" is displayed instead of "30".
-
@Fortune use if value < 30 and set.texte("off") quelque chose comme ça
-
HiseSnippet 861.3ocsU0saaaCElzILaVcsncXO.D4JGft.696.BxlabhGL5RhwTZPuqfVhJlvTjBjTY0anua6QZuAsGRIGotZj1Zf5KLz4W9cN76b3TiNgasZCB28hkEbD9GHwKUt4ilyDJzjiQ36QNkYcbCsR0QKKXVKOEgwa86dE3taiB+9ue6HljoR3MpPnK0hD9eHxEtFsSG9RgTNlkxuPj2x6mLbRhVMRK0k.d1hzGUvRVvtheFy6VGBBuyIoBm1D6XNtE74Hc5x345+RU4+kBqXlj6EFfhgDUoFMZtPlNcUsZQH71Sap7spp7ehbpHUbi9lNv8CFnMQztGf6baPZvWAjvsfz1UP5Aj3Dinv0Xwim6PlnfKjLFzpaCkJeQc3XxHM3gxseNaAerADtIhdOqe+GRg+16fnHncaczqYF5KU5YCnGRWE3Ub2HcdgVAB81MXcWeDgu12xcWxjk7o5hxhwkpDmPq5ks5iq811K5eh5JxnURzCOj9396E0sqg6JMJ5tmOd7tG.xQqzbJyMeeitTkVmfChd2dGrJoTs5LsietpWHwQuKh9+MkksVa9RxnkRtYsl8bPysEXOUY9Lt4gzlxx6HbI8w2767kcymT0ga4nVMQIbmWvqkGqko9aT+2eJOAUeE4YL0HDb0E3K2qluDKEobCR.I46HgqLT.7MyZ+5PzqlbLywVkFHivoTvMNguXvGyuFlbqngcIGysKb5hfu0rBD9te1C8s2bf+6rgKaN8KFZcK8slcBNhxEooRfMYE9Ve6ffMOEwh+FbkPFreevSU6hvVlkIdaX2PlPlac.PljCqLP3ej7JKmlxyXkRG0t.BTJTK3oWnC9myZgNyPKbezvo8kvKloulCaq9joRXefNsTxbe7RB+1vZC9hn8joe5SAE2x1aK+J1bz+V2b7kBwGPlJbIyWOF6rFLBbiuEXrde6cImjkwSbM.bax3WuoKW+LG+epKcB0UvNFimuPNqLOFdlIgCmtRwkPxI3N9oqJ49dYeGHlqRCBuG9UabfWFWabvJi.iJwneSR0Loei92Gz.XREd.qK7RJHSuYXjP5Gnzoh2jj3K+eFF3WeLOZCh4waPLOYCh4oaPLOaCh44aPL+xsFi+c8WT5z4UiCfhomDVJhwmnX.yJvBQe..DjXWt
-
@d-healey Awesome. Thank you!
-
@d-healey It doesn't work with the
setAttribute
usage here.HiseSnippet 1050.3ocuV0saaaCElxNrsVaqnEnO.BFCCNacYVIo+LDjV23XuYz7i2bVvtZczRTwDQhTghJcNC8lgc0dGJ1c60X6lc4dG1dC1av1gTxQRItoEFa0WDD9cNeje7Pd9DGJEdzjDgDY03fowTj06hGMkqlzcBgwQC1FYcS7tjDEU5jAs0zXRRB0GYYU+yz.VMVBY982OdKRHg6QKfPnCELO5NrHlp.cXmmxBC6S7oGvhJk85cF3I3cEghTPO0wsQwDuiIGQ2inSqFFYcsd9LkPNRQTzDj0RaI7mNZh347r7OjkvFGR0CbQifIJCtuHzWqXMJp6DVn+vY66DDLKCKpB0ypB2AuKymcNdQ03Vl.NELJWOrpUUd0qHO2xxqcI4MGIYURRKkIoaiG4IYwphHZ87N3Ab3vIf.k8xRIKWTscpg6JfL3pUhHGS6KgAmyn0ZsaeWG3OKugsMT5STNmRjNCIRnfqjrS58ENa5XtOrxQTUuf.pmpUyxwaVk5S4hwt.mYqIvpqHJVvgAsZZhpYv3gLN0IHk6oXBtifaBoYIEgs7lQ4tvjFlRW196saX2HT3QBcXb+UgUnrHVYKB2e+ffDpx4CcV04ipFsujdxF.+JfPtOQA++3TEskdNmsV5LsavBbZYF6r4lPEZY6FRpJUxcZte+9M2PmRNfIKCoWrg8Utu0qY9VrKILbLb4tU0cttXZaWprrmPQ2m2Jq.7BamKFJHXtwxmtPpbtg0scxqhXKdZzXprR4GRDtKV8BN9UeAub+mWVUoThB9.NSseLk+p5JQ4kRcyPtpfTUlVgal2JLJj4SkHFbi+5XScDYDbgkxi5f9pAaSTjYSCLivpDSkJldCXsM8TvfJqCqAdaZxwJQrI27SO.90tneWwBdPmoEC9lNfwY7H1YyTTm+5re7wQkMMeTmHRA8c9iNIoAAL.Aic97yPIPI6P8VZnHNEz00v6PCfZxksG.iIgeZHQU0sRaQmG.NgqXQnsA3IL0zxV3+mYg8lJwaiGxTdSluFqMGMBmj+enwbi+2Cm4xUHvkv8+52Bt72Y1cvtoxSo8NI+auk8rpnh8Ri5yBAibcanUcXynMAaWtNoAbyA9y2+mHcz.qV8C1b+0tHv5E.2xP4d4.e6O+I+9upAteNvu8xW9bSFO3hywCuHvmdwI08bo9K+vGjg3VtsvfbIw5dI05tdYj98OnGm.U+rSp5uwmTtW8EkuTjpX7i1k.mD5lSn5OBdkhGEtmv4zPygPMsqU1315wZIMhZNTvV+C7KOnqdrUdP2YAeqrFQDOo3YdY9o5qf2vf.6at4MVMfG6AicN2HEiauRaTD7lmm44oaF9Xvrd9bVcA3r1BvY8Efy8V.N2eA37fEfyCuRN5ma9jTkHJybD.F1y7AMKqR2zQ+K.rHGBZ
-
@Fortune Do you need something like this ?
Content.makeFrontInterface(300, 300); const var ParametriqEQ = Synth.getEffect("ParametriqEQ"); const var Knob1 = Content.getComponent("Knob1"); inline function onKnob1Control(component, value) { local ind2 = ParametriqEQ.BandOffset * 2 + ParametriqEQ.Freq; ParametriqEQ.setAttribute(ind2, value); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control); Knob1.setValuePopupFunction(function(value) { if (value == 30) return "OFF"; return(Engine.doubleToString(value, 2)+"Hz"); });
-
@DabDab said in Customize the values shown in valuePopup:
@Fortune Do you need something like this ?
Yes exactly. Thank you so much!