HISE Logo Forum
    • Categories
    • Register
    • Login

    Questions

    Scheduled Pinned Locked Moved General Questions
    31 Posts 3 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey @UD AUDIO
      last edited by

      @UD-AUDIO said in Questions:

      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 ;)

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      UD AUDIOU 1 Reply Last reply Reply Quote 0
      • UD AUDIOU
        UD AUDIO @d.healey
        last edited by UD AUDIO

        @d-healey said in Questions:

        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.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @UD AUDIO
          last edited by d.healey

          @UD-AUDIO said in Questions:

          For me it's trial and error, with zero coding skills.

          You're going about it backwards. Do a javascript course first, then you won't have zero coding skills.

          KnobDsp1.set("text", value);

          I assume KnobDsp1 is a knob?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          UD AUDIOU 2 Replies Last reply Reply Quote 0
          • UD AUDIOU
            UD AUDIO @d.healey
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • UD AUDIOU
              UD AUDIO @d.healey
              last edited by UD AUDIO

              @d-healey KnobDsp1 is a label and it wants to be a display :D Renamed to ValueDisplay1

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @UD AUDIO
                last edited by d.healey

                @UD-AUDIO

                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.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                UD AUDIOU 1 Reply Last reply Reply Quote 0
                • UD AUDIOU
                  UD AUDIO @d.healey
                  last edited by UD AUDIO

                  @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.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @UD AUDIO
                    last edited by

                    @UD-AUDIO said in Questions:

                    and just numbers for arrays etc.

                    Explain...

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    UD AUDIOU 1 Reply Last reply Reply Quote 0
                    • UD AUDIOU
                      UD AUDIO @d.healey
                      last edited by UD AUDIO

                      @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.

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @UD AUDIO
                        last edited by

                        @UD-AUDIO

                        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 ;)

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        UD AUDIOU 1 Reply Last reply Reply Quote 0
                        • UD AUDIOU
                          UD AUDIO @d.healey
                          last edited by UD AUDIO

                          @d-healey Yes I agree :)

                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey
                            last edited by

                            A knob can use either parameter/processor ID or a custom callback, not both.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            UD AUDIOU 1 Reply Last reply Reply Quote 0
                            • UD AUDIOU
                              UD AUDIO @d.healey
                              last edited by UD AUDIO

                              @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.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @UD AUDIO
                                last edited by

                                @UD-AUDIO

                                Can you explain for dummies?

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                UD AUDIOU 1 Reply Last reply Reply Quote 0
                                • UD AUDIOU
                                  UD AUDIO @d.healey
                                  last edited by UD AUDIO

                                  @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.

                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @UD AUDIO
                                    last edited by

                                    @UD-AUDIO Don't use on control, it's obsolete.

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    UD AUDIOU 3 Replies Last reply Reply Quote 0
                                    • UD AUDIOU
                                      UD AUDIO @d.healey
                                      last edited by

                                      @d-healey Aye! Good to know..

                                      1 Reply Last reply Reply Quote 0
                                      • UD AUDIOU
                                        UD AUDIO @d.healey
                                        last edited by UD AUDIO

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • UD AUDIOU
                                          UD AUDIO @d.healey
                                          last edited by

                                          @d-healey Hey mate! Sorry for not responding yesterday.
                                          I was very tired. It took me a while to understand what this means technically:

                                          @d-healey said in Questions:

                                          A knob can use either parameter/processor ID or a custom callback, not both.

                                          I do understand it now. But this doesn't say, you can't get the value somehow, right?
                                          Found some other posts with the same or similar topics:
                                          https://forum.hise.audio/topic/1037/sliders-value-to-text?=1625189564881
                                          https://forum.hise.audio/topic/709/filmstrip-knob-value-display/4?
                                          =1625189564856
                                          https://forum.hise.audio/topic/2270/getting-the-bpm-of-the-host-displayed-in-a-text-label?_=1625236096862
                                          2018-2021 :D

                                          I don't see an issue with HISE here.
                                          But do you think I should make a Feature Request for it?
                                          Just as second option for the built-in value popup.

                                          And yes...I will learn scripting - even if HISE had anything I want
                                          as out-of-a-box functions. Just because the skill is so powerful.

                                          d.healeyD 1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey @UD AUDIO
                                            last edited by

                                            @UD-AUDIO

                                            But do you think I should make a Feature Request for it?

                                            Nope. Just use a custom callback and drop the parameter/processor ID. Then you'll get everything you need.

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            UD AUDIOU 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            14

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.0k

                                            Posts