Questions
-
Is it possible to make an image which ignores the mouse,
or do I have to add them individually?
I wish to add details on top of my interface.Who can tell me how to display slider values in labels/panels?
Found some posts related to that but most of them
were to complex for my propose. -
@UD-AUDIO
Just click On Enabled On Properties Of Your Image Component.
It's Located In Top Right Hand Side -
@Natan Damn..I've never tried with that. Thank you :)
-
how to display slider values in labels/panels?
Found some posts related to that but most of them
were to complex for my propose.It's a one line command to display a value in a label.
label.set("text", value);
If that's too complex you need to watch my my scripting 101 video ;)
-
label.set("text", value);
In fact, I did see that video :) But should watch it again!
inline function onKnob1Control(component, value) { //Add your custom logic here... KnobDsp1.set("text", value); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
For me it's trial and error, with zero coding skills.
And no matter what I try with that line of code, it doesn't work for me. -
-
@d-healey I will! Downloaded a lot of PDFs about coding.
But it will take time..and for now I just would like to have values in my labels. -
@d-healey KnobDsp1 is a label and it wants to be a display :D Renamed to ValueDisplay1
-
But it will take time
Years... be prepared, or hire a scripter.
Renamed to ValueDisplay1
That's a terrible name, it doesn't tell me anything other than it's something that displays some value. If the label is to display the value of a gain control for example you could call it
lblGain
that tells me straight away it's a label control and it's displaying a gain value, so I would expect it either to be in dB or a gain factor.Read this.
KnobDsp1.set("text", value);
If KnobDsp1 is a label then that line of code should work. Post a snippet and we'll see what's going wrong.
-
@d-healey I would like to have a best friend who is a genius in coding.
But yeah..I'm prepared! Music production is also not an easy thing
and I have learned over 15 years. I like to learn new things
and coding is a skill I would use daily :)The name is indeed terrible.
I just thought it's better to have the same name
and just numbers for arrays etc. For quick prototyping it is fine.
And to me it's much easier to copy like this.
Mostly I don't need to name it, if the function is done.I will study the doc section!
-
-
@d-healey Can't really explain hahah.. I thought it would be needed for identifying.
If I had an array I could say KnobDisplay1-19 and that's all.
I do know some of those variables etc. from Unreal Engine blueprinting,
but visual programming is not the same. -
If I had an array I could say KnobDisplay1-19 and that's all.
Go and read all of the HISE docs and follow the links there to Javascript tutorials, it will save us both a lot of time ;)
-
@d-healey Yes I agree :)
-
A knob can use either parameter/processor ID or a custom callback, not both.
-
@d-healey Did read that somewhere else today. Can you explain for dummies?
Guess I have to get the slider value with a get function :) -
-
@d-healey You would laugh or cry - probably both,
if you would see how I'm using knobs. :P
I think my first fault was to put the code onInit and not onControl. -
@UD-AUDIO Don't use on control, it's obsolete.
-
@d-healey Aye! Good to know..