HISE Logo Forum
    • Categories
    • Register
    • Login

    VU Meter image strip jumps on the latest frame

    Scheduled Pinned Locked Moved General Questions
    15 Posts 4 Posters 701 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.
    • orangeO
      orange @Lindon
      last edited by orange

      @Lindon said in VU Meter image strip jumps on the latest frame:

      @orange - hmm looks like it's maybe in your image itself:

      Image is ok I've checked.

      Can we give a lmit for the read value? let's say no reading above 2 dB?

      develop Branch / XCode 13.1
      macOS Monterey / M1 Max

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @orange
        last edited by

        @orange well I removed any dependence on the volume and replaced it in your timer with the knob value. As you will see when you move the knob it applies a "virtual volume" - so you can better check your timer code....you will see when you use it your vu meter is jumping about all over... so either your image is off - or the code you are using in your timer is the problem.

        HISE Development for hire.
        www.channelrobot.com

        orangeO 1 Reply Last reply Reply Quote 1
        • orangeO
          orange @Lindon
          last edited by

          @Lindon Issue is gone when I set the height and width to the original image sizes.

          What about scaling the image? How can we scale the panel image down without using width and height? Because scaling down the image makes it a little sharper.

          HiseSnippet 2365.3oc6Z8zaajaEejsYRjy5DmzMsEn.ED5PgRVWsRNNY2sAashsky5D6HAIGu6dxkYFJIBOhb1Y33XgfzuG6sbpeF5w7AXOzyE8Pu2K8ROTfBz9H4LRyHM1YV0jz3hnC1hO93i+d+g78dztkuvlFDH7sJTb+gdTqBeDpyPtr+l8ILt0NaYUXQzAOAuGUR8s1XnGIHf5XUnv7OPMeghKXo+72WeChKgaSGSxx5.AyltKa.SNlZq5Oh45tMwgtOaPBtWq9N1B9lBWQHfk4QUs7H1GQ5QeLQw1bHqBWngCSJ76HIRZfUgE1P3LrSewy3F9OfEvdpKUMnlUGPPFxaKbcTHVQ0Zy9LWmVw5bfkUATqwVf4MVfOFsGygMh9XKwx5IviWQR6Qg4NK3UKI7ple3UHA7Vv.uqg5X6y7jimQ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XKy3bueWGsKk2S1O+61Qpc6fGB612HZYFakuPqqghxa2g5BcKHxyQkLEzOCYZ59Mj3tFZuVM5ndesHANkIHmmctpRPM3NmhXpVOOgsQsbOcH+6r1Zm8DZy0Zp+ZbKG0OVCn8HWAPItdecu7wTSmWaOAW30WvYoJKnMEpYrWOZppMxTgtuTpBjSTkSaHDgDjvdVp9tLNk3C1I5LZKpk+j6mk+5miLvEqpX78qFJtpA1WDc+uZqNsi5rT+c7aSG2lg9GSSWfqMY3TTmzKuVcCkco.zRxn97zjhaDAOu5cBCjop2+ae0TAL35MrEu8hVP4LZYojQKum2y4Uhwpwi79MX+HjNr37fc8pnn.1yEF1qfhNKcdvzdlOx57m2dj02LcldZOr5UhHfUTpcFOn5sp+gGT8COn5GdP0+e3AUOaSxdrSN+3AgtHCrWEquvG++9a7eW3HeWrGCH19hCi+u6ArVWRSAzat9eDxhn8Tiwi969iPUqT0Z.ygcnssJq1utlkU1qY0YXM2dFVyZyvZtyLrl6NCq4ylg074m4ZTu088CkhAl3efPqF5+4IJTv7BZ5iBV+GW8fk1.
          

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @orange
            last edited by

            @orange good question -maybe some combination of panels inside panels? - I never do this "rescaling to get a sharper image" thing...I leave all the image processing to photoshop (or gimp in my case..)

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • orangeO
              orange
              last edited by orange

              Wow! Setting "width": 151, to "width": 150.9, issue gone.

              Since the strip is vertical, at first I thought that the issue was about the height value, but it was width. So weird...

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

              LindonL Dan KorneffD 2 Replies Last reply Reply Quote 0
              • LindonL
                Lindon @orange
                last edited by

                @orange - glad you got it sorted.

                HISE Development for hire.
                www.channelrobot.com

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

                  I encountered the same issue and ended up setting the index to Amount of Images - 1. That worked on my end. (basically discarding the last frame).

                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                    @orange Could this be globally related to the decimal issue I'm seeing in other things?

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    orangeO 1 Reply Last reply Reply Quote 0
                    • orangeO
                      orange @Dan Korneff
                      last edited by

                      @dustbro Yes it could be. This decimal sample delay issue right?

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

                      Dan KorneffD DanHD 2 Replies Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @orange
                        last edited by

                        @orange yup

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 1
                        • DanHD
                          DanH @orange
                          last edited by

                          @orange Can I ask a noob question pls:

                          // the yOffset is index * heightOfFilmstrip
                              	this.setImage("filmstrip", 0, index * 120.0);
                          

                          What's is heightOfFilmstrip referring to?

                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                          https://dhplugins.com/ | https://dcbreaks.com/
                          London, UK

                          orangeO 1 Reply Last reply Reply Quote 0
                          • orangeO
                            orange @DanH
                            last edited by

                            @DanH said in VU Meter image strip jumps on the latest frame:

                            @orange Can I ask a noob question pls:

                            // the yOffset is index * heightOfFilmstrip
                                	this.setImage("filmstrip", 0, index * 120.0);
                            

                            What's is heightOfFilmstrip referring to?

                            heightOfFilmstrip value is the exact height value (in pixels) of the each frame in the image strip.

                            Below height value is for the final resized look.

                            Content.setPropertiesFromJSON(name, {
                                  "width": 151, 
                                  "height": 83,
                                  "opaque": true 
                                 
                                });
                            

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            DanHD 1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @orange
                              last edited by

                              @orange Oh right, I get it now, that's what confused me! Thanks :)

                              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                              https://dhplugins.com/ | https://dcbreaks.com/
                              London, UK

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

                              30

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              105.7k

                              Posts