How can I change the range slider default values?
-
Every time I compile, the range just reverts back to min = 0 and max = 1 on the GUI.
How do I change that to min = 0 and max = 127?
-
I can set them from onInit, but it doesn't update the values on the GUI range slider. Compile only resets them to the 0-1 position in the GUI range slider:
-
@VirtualVirgin Good evening, I could be wrong but have you tried a NoteRangeSlider.changed(); after changing parameters?
-
Yeah seems like a bug. I'll take a look at the HISE source in a little while and see if it's an easy fix.
-
I had a quick look but nothing obvious stands out, I can see where the correct value is being restored, but not where it is then being reset. If I have some time tomorrow I'll try and take a deeper look.
-
@klaytonrangel
Thank you :)
I will try adding that. -
@d-healey
Thank you for checking it out!I am wondering if the Property Editor would need be able to accept two different values for the "defaultValue"?
-
@klaytonrangel said in How can I change the range slider default values?:
@VirtualVirgin Good evening, I could be wrong but have you tried a NoteRangeSlider.changed(); after changing parameters?
So I have tried this and did not get any result from it :(
-
I just can’t seem to get the Range Slider to work.
I can set the Min and Max values in the script
and they those values can be sent to the labels in the GUI
and those values function properly in the context, blocking the note messages outside the range.Here,
note number 48 is the Min (C2)
and note number 60 is the Max (C3:
But the slider in question is not sending out any values to the script (the green range here, with Min = 20 and Max = 24)
the getMinValue and getMaxValue will only retrieve values set in the script and not from the GUI.
So I just can’t get the values from the GUI Range Slider to the script or from the script to the GUI Range Slider.
I am stumped at the moment.
Is this a bug? -
@VirtualVirgin snippet please.
-
@VirtualVirgin I think the range slider is broken, and has been broken for years.
I have to check as well -
@ulrik said in How can I change the range slider default values?:
@VirtualVirgin I think the range slider is broken, and has been broken for years.
I have to check as wellIf this is a bug in HISE, is it something that I can fix myself?
-
@VirtualVirgin You could probably fake it using two regular sliders and look and feel, or make a custom control with a panel.
-
@VirtualVirgin I couldn't get the slider in "range" mode to work I'm afraid
See if you can use something from this exampleHiseSnippet 1479.3ocsW0uaaaCDmJMpn1aEaEXO.b9OJj6bcki+Hosqno4qsr0jXTmlMfhfBZIZatHSZHQ6Du17ts+bOG6IXuAYGIkrjcbcRMVCPBB486t62c5NxiMCEdznHQHxJ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