HISE Logo Forum
    • Categories
    • Register
    • Login

    Value of Knob to a Graphic size

    Scheduled Pinned Locked Moved General Questions
    20 Posts 5 Posters 1.2k 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.
    • JayJ
      Jay @d.healey
      last edited by

      @d-healey How do I attach it to a parameters in an fx?

      Joansi Villalona

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

        @jay I don't think you can have a scripted callback and assign a parameter ID in the interface designer, you'd have to add the functionality you want in the knob's scripted callback function.

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

        JayJ 2 Replies Last reply Reply Quote 0
        • JayJ
          Jay @d.healey
          last edited by

          @d-healey Can you do an Example for me?

          Like get the RoomSize of a reverb and when turning the knob for that parameter the image go big or small

          Joansi Villalona

          1 Reply Last reply Reply Quote 0
          • JayJ
            Jay @d.healey
            last edited by

            @d-healey any ideas? please

            Joansi Villalona

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              That's not going to work out, resizing images that way looks terrible.

              Either use a ScriptPanel and draw it in the paint routine, which scales nicely because it's rendered dynamically or use a filmstrip with the different sizes prerendered.

              JayJ 1 Reply Last reply Reply Quote 0
              • JayJ
                Jay @Christoph Hart
                last edited by

                @christoph-hart I did that way but is doing it in a weird way, I can send you an snippet of what I'm trying to do, so you can check it out if you can.

                Thanks in advance

                Joansi Villalona

                1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff
                  last edited by

                  @Christoph-Hart said in Value of Knob to a Graphic size:

                  use a filmstrip with the different sizes prerendered

                  What method would you use to change the filmstrip image according to GUI size? I can't find anything in the API that can query the GUI zoom setting.

                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                    @dustbro I don't think this would work because HISE doesn't embed all images in the binary, only the ones that are used. But to set the image of a knob you can use knob.set("filmstripImage, image); (or something like that).

                    As far as scaling to GUI goes, just make the knob image 2x its normal size, then it will scale down just fine for people on lower resolution screens, and those on higher resolution will get the unscaled image.

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

                    Dan KorneffD 1 Reply Last reply Reply Quote 1
                    • Dan KorneffD
                      Dan Korneff @d.healey
                      last edited by

                      @d-healey said in Value of Knob to a Graphic size:

                      just make the knob image 2x its normal size

                      This worked perfectly. Took me a sec to figure out how to set the scale to .5

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk
                        last edited by

                        @d-healey @dustbro But I don't see how this solution can follow a GUI zoom change...?

                        Can't help pressing F5 in the forum...

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

                          @ustk When you change the GUI zoom level HISE scales all of the images. If you have an image that is 2x and the user scales it to 50% the image will now be 1x.

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

                          ustkU 1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey Yep I know that but I thought the solution asked/proposed was in a way changing the image regarding the zoom factor (like with a film strip)
                            I'm not sure it always happens, but with subdivisions of zoom factor, you still have aliasing with a 2x image size. For instance, if you use 25/75/125% zoom or even 33/66% for the most crazy guys ou there like me :)

                            For the moment I'm trying to go 100% vectors, but surely in a close future, I'll make image-based GUIs...
                            Having a get/set zoom factor API would surely simplify the life

                            But this has a drawback => the size of the cumulated images/filmstrips...

                            This API would be very helpful anyway as I foresee other use of it...

                            Can't help pressing F5 in the forum...

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

                              Yeah that was the original question, but it's not possible :)

                              I haven't noticed any scaling issues, I'm sure there is some aliasing but if no-one sees it then I don't think it matters. If I scale to 25% then my interface looks horrible and small, but that's because I'm using a 2K monitor.

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

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post

                              14

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              105.7k

                              Posts