look and feel slider retaining HISEs value modes?
-
Hey there, my plugin has about 15 dials showing different parameters like values from 0 to1, pitch -12 to +12, some milliseconds some divisions and so on. So most of the dials have a specific "mode".
Once i use look and feel to draw my dials they loose this functionality and just display numbers. What is the best way to keep those or is there a way to acess the original laf setup that the core HISE dials are using and going from there? I decided to not go for filmstrips this time since i have to deal with the display of numbers and divisions :) Any ideas on how to tackle this?
Also attached an image on where i want to head with this:
-
@Straticah You can get the value from the
obj
in the laf function, I think the suffix is also available there. UseConsole.print(trace(obj));
to see what data you have access to. -
@d-healey hey david, yes i got the suffix to work how would i go with the divisions? 1/4 for example? Its 0-18 in LAF but i would need 1/1 to 1/64T
-
@Straticah Oh right, i think there's an engine function to get the tempo value. I'm not at the computer right now to check .
-
@d-healey alright no problem, i will see how far i get with the slider/value combination i have.
-
@Straticah Use obj.valueAsText
see example here:
HiseSnippet 1191.3ocsWssaaaCFlxIJa1csXcnO.D4l3.XXjCdcEXXn14f6Lxg5EmVrghgBZIJaNSQpQQkDkfBzK1E6MXX6p8Dr62UKuC6IXuA6hc+1OkjskabRbbwzEIhj+eTee+GH+cakzgFFJUHqhGGGPQVejcmXgt+18ILAp0NHqGXe.ITSU3zo1JNfDFRcQVVK7LyDVEWDk772OcKBmHbnimBgdoj4P2m4yzimsc88XbdShK8XleNqqUukiTrsjKi.9rf8Zn.hy.RO5gDiYErQVKsqKSKUczDMMDYs3VR23N8kmJRs+krPVWN0LXcTGXiRmtoj6ZXrYVz18Yb21C0cHB1k1i8BKj5Edj8ALW1n4G6M93jEviQj2eXUXR5svDza8qidSgRV4nzhoT5g1cbTr.83UL74d1sDPvwi.t87TI0VTg+of81RvBgtpOY.soBFLBQ4Gu1ZUvveV8yKUBb8gZ7IDEtgRQhweA9UCQ1ip2V5GHEvfxKumP1c8kWsRI7UetdDabmQr4cFQskWcZ.9VPc4j29MZBha3t3nnPvZeoCguuTNngvsIkxKa7HfgUUzdLS1eyHgilIEkWwUQN8Holnh6vYtT0JUvgIu.laP4I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