Default Value of a Slider doesn't change and the Slider Value always jumps to zero
-
(I use Ubuntu Linux, that might be connected to problem somehow)
I connected a Slider to a parameter and set it up. The default value always resets as soon as I press enter. When I turn the slider, the value of the parameter it is connected to jumps to 0 and doesn't change after that. That makes any kind of a Slider or other UI component completely unusable. I tried this with Sliders for different parameters as well as ComboBoxes, no luck.
I built HISE myself and didn't use the old version you can download directly from the website, maybe I messed up something while building it, but I don't think that's the issue as everything else works just fine.
Hopefully somebody can help me with this weird issue.
-
Have you set the range of the slider (min/max/stepSize) to match the parameter you're connecting it to?
-
@d-healey I did. I tried setting those manually and tried using the "Time" preset for an Attack slider. I think that the problem has to do with the default value of the slider which always resets the actual value to 0.
-
@Myroslav-Artiukh The default value is used when you double click the slider. Can you post a simple snippet that demonstrates the issue?
-
@d-healey Here is a short clip of me moving the slider and the actual parameter just jumping to 0 all the time.
2024-06-30 11-03-50.zipI needed to upload it as a zip, because video formats are not supported.
-
@Myroslav-Artiukh Export >> Export as HISE snippet
Post the result here within code tags
-
@d-healey Oh, that's what you meant by a snippet.
HiseSnippet 982.3oc2W8ziaSDEe7lLPyVXUKBg3nOvgsRUnXnzVINTua1jkn1raz5zBbpLq8KICq8Llwi21.p25AtwWI9HfDeQ52.3M1NwSntaWhnHJ9Pjd+ad+du48mIiUxPHKSpHNclrHEHNuGMXgPOu2bFWPFd.w4cnSfLMY+EorrLHh33z5PiLmNsIEeu3d6yhYhPnlEg7HIODd.Ogqq4N1+9733ArHXBOwR6a4OLTJ5Iik4HNZQ6RRYgmwlAGwLpsEEAQ+HtVpBzLMjQbZuuLZQvb4SDk5+HdF+zXvP3QBvCpj8.YbjAwFtjdy4wQiWFuYDhCcbcz2pL5+P5HdDeE+5rv0JD3Vagc9vYq0gWq0fmmM75ZAuFfjiEjZWBoqSCBU7TcsDCdtJcnPCpoLLsaCkRcIN+JsmDUPn+zD1Yv.ERrxfcuc2t2zE+4Fe4zbQnlKEtRwQRMbrX2ar8Oscmse11t+UQSm1nLiaTx3XP0nXyMs5hLbWQdxof5ltmyhygUJhg+54T5qNmZekGVF0VJJECEb8wof3UUHPpRUl7eEpPU0EY+cpx9Aw7HPQ3XR9co2WHO0iT.X6ZdxCGd.SyVdL3IhdIETZtI.bN.NG6IJuT6PO.xNSKSKzMIUJL92YmWqSeZsC+V+E1DI7nnXXrLiaRvqj3+K9YZHMf+ifcKaBq9j94e2OKe5TNxgRcSxHZ3oHXtBcOsFaDIIxHnXNfoqMcYhaHhpO.Cior7Xcew4PLFqdXqqB6ZwJMi7UGwS3Q5409+67mC7YyslM7U9jWtzGa5jQ4wL85chlwOUBLQpc4uoFWfYfE1w5+XsmWVHdc5XtNbdyXbqFvHVx7l.iUC0deZ+oSgPcM.aSG7MuYlfY69cJc+UoAbATrUov4eTAs6WyNGbODDfxj77tfEL+1kcAS5kdAywgZz8STLQVpLasCN.R3Sv9wLalOLCmgB+vIlaSa98jLUihdw8FfAYi1Dvz4phxh8Rj4B8ZkAstnEcda3ht1+maQ2aAM6qsKtyRLFvSRigki6JvXCCAsQ4HoPlNWJ3g1Wzm.ZEe1LPYi8FCnpInUbd92e3cOAhAlcQ6m3+.rXioFULndixEd+seWRi2Web0.eWSCn6auCoa8+6gzmHy0bwrQLrHzr0+n7j.b1XHfdWHfXy6sb1xLeqjtqgtb3nHpf3OvuJgdFZmJgdKE9uhORXgJ4iCKeyloN8JEbv3VT7WG5PGYnca3wZ3yk3ONLb8i5kL7y1TC+7M0vasoF9Eapg2dSM7Napg280anYIzd4ZYRYqIgLZb+hGW63zWvvp7hNBxeBks166C
-
@Myroslav-Artiukh Working fine here, are you using the develop branch?
-
@d-healey I just built HISE yesterday by following one of your tutorials and the manual, so it's definitely the newest version from github, I'm not sure if it's the develop branch or not.
-
@Myroslav-Artiukh Check which branch you built (although you shouldn't have this problem with any branch)
-
@d-healey I just cloned this repository: https://github.com/christophhart/HISE
-
@Myroslav-Artiukh git checkout develop to move to the latest branch
-
@d-healey I got this error:
error: Your local changes to the following files would be overwritten by checkout:
projects/standalone/JuceLibraryCode/JuceHeader.h
Please commit your changes or stash them before you switch branches.
Aborting -
@Myroslav-Artiukh It's not an error, it's just telling you that your changes will be overwritten because you haven't commited them. If you want to keep them you can use git stash, otherwise just run git reset --hard before switching branch
-
@d-healey It worked. Should I build HISE again?
-
-
@d-healey The build just finished and the problem is still there. I got a lot of warnings when building, for example this:
../../../../JUCE/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object] 164 | delete[] reinterpret_cast<char*> (b); | ^ ../../../../JUCE/modules/juce_core/text/juce_String.cpp: In function ‘getWithParameters.isra’: ../../../../JUCE/modules/juce_core/text/juce_String.cpp:56: note: declared here 56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 }; |
Maybe I need to update the JUCE version as a lot of these warnings have to do with JUCE?
I also don't use the Intel IPP, maybe I need to turn it off somewhere in the settings?
-
@Myroslav-Artiukh You can ignore those warnings, you don't need to install JUCE everything you need is included with HISE.
Which version of Ubuntu are you using?
Does changing the default value to something other than 0 make a difference?
-
@d-healey I am using the newest version of Ubuntu (24.04 I think), Ubuntu Studio to be exact.
I can't change the default value to anything other than 0, which is why I thought that it might be the reason this is happening.
-
@Myroslav-Artiukh said in Default Value of a Slider doesn't change and the Slider Value always jumps to zero:
I can't change the default value to anything other than 0,
That's strange, you should just be able to enter a new value in the interface designer.