HISE Logo Forum
    • Categories
    • Register
    • Login

    Help with Peak meter with fiilmstrip

    Scheduled Pinned Locked Moved Newbie League
    vu meterpeak meterlaffilmstriplookandfeel
    15 Posts 3 Posters 77 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.
    • S
      ScreamingWaves @d.healey
      last edited by

      @d-healey ahhh actually with x and y i meant height and width, but x and y are the position on the interface! it starts to make more sense now!

      about the math, is that for calibrating the peak?

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

        @ScreamingWaves said in Help with Peak meter with fiilmstrip:

        about the math, is that for calibrating the peak?

        It looks like it's converting the peak value given by obj.peaks to a frame number of the filmstrip, in order to calculate the offset for the image.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        S 1 Reply Last reply Reply Quote 0
        • S
          ScreamingWaves @d.healey
          last edited by

          @d-healey so thats for later.
          my filmstrip started moving, but above and below at the same time Registrazione schermo 2025-10-14 alle 13.03.31.gif
          any idea why?

          d.healeyD ChazroxC 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @ScreamingWaves
            last edited by

            @ScreamingWaves Did you set the number of frames and the size of the floating tile correctly?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            S 1 Reply Last reply Reply Quote 0
            • S
              ScreamingWaves @d.healey
              last edited by

              @d-healey
              i'm a bit confused, if in the component properties i increase the width of the tile, also the height of the image is increasing, if i set it right, the image gets cut.

              in the script i don't find a place where i can set the size of the image

              g.drawImage("PeakMeter", [i * 20, 0, 20, a[2]], 0, 0 * z_value);
              

              in this piece of script, the first two are x and y, the third seems to be the width of the channel R, because if i set it bigger than 20, the right bar will be bigger. "[2]" i still dont get what it is, if i set it to 3 i see the whole height of the bar. the first 0 seems to change nothing when i put another value, the last 0 changes the range of the movement: with a low number, hise will scroll the images of the sprite sheet, if the value is high like 518 (its the height of the meter) it will move like in the gif above. And in the original script from the snippet i don't see any image size value

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

                @ScreamingWaves said in Help with Peak meter with fiilmstrip:

                in the script i don't find a place where i can set the size of the image

                Set it in the property editor. The comments at the top of the snippet you posted provide instructions

                /*
                Adjust the frame number and zero dB frame number in the LAF.
                Also set the height of the FloatingTile to the desired image height.
                
                Adjust the Decay values inside the FloatingTile. 
                
                Also make sure that the background color is full transparent to prevent the glitch.
                */
                

                a[2] is the width of the floating tile
                a[3] is the height of the floating tile

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                S 1 Reply Last reply Reply Quote 0
                • S
                  ScreamingWaves @d.healey
                  last edited by

                  @d-healey in the floating tile properties the size is set correctly, but i still don't get the right behavior from the peak meter :/

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • ChazroxC
                    Chazrox @ScreamingWaves
                    last edited by Chazrox

                    @ScreamingWaves Are you sure you exported that properly? I dont think at any frame it should be showing like this....

                    at most it would slide out of frame if not set properly but it wouldnt produce this look. Something seriously wrong. Can you check each frame of your sprite sheet and make sure the green touches the bottom on each frame?
                    Screenshot 2025-10-14 at 5.01.05 AM.png

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

                      @ScreamingWaves Did you set the correct number of frames? In your snippet it's set to 100.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • S
                        ScreamingWaves @Chazrox
                        last edited by ScreamingWaves

                        @Chazrox you were right, the sprite sheet was spread the other way around 🤦♂
                        curious tho that it "compressed" the image that way tho.

                        at least now i understand that script better and i could give the peak meters to all the hise outputs with a loop and it's working! I'm slowly learning how scripting works. thank you both! :D

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

                          @ScreamingWaves said in Help with Peak meter with fiilmstrip:

                          I'm slowly learning how scripting works. thank you both! :D

                          Looking at the filmstrip you're using, you might want to explore implementing the design with vectors directly in HISE instead of using image files.

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            ScreamingWaves @d.healey
                            last edited by

                            @d-healey I'm still much faster with photoshop than with codes 😆
                            but i've found your HISE Paint Routines + vector graphics playlist, I'll give it a look :)

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

                              @ScreamingWaves On Patreon I have a video specifically about the peak meter's look and feel function if you want to know more about it.

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - HISE tutorials

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

                              34

                              Online

                              2.0k

                              Users

                              12.7k

                              Topics

                              110.0k

                              Posts