Forum
    • Categories
    • Register
    • Login

    VU Meter Returning Incorrect

    Scheduled Pinned Locked Moved General Questions
    vu metersliderpeak meters
    11 Posts 3 Posters 1.9k 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.
    • soundsyncS
      soundsync
      last edited by soundsync

      Hey Gang,

      Ive got a simple VU working with a slider. The VU does work and shows volume changes BUT it seems very low compared to the HISE master output meter.

      Here is my code.

      //VU METER CONTROLS
      const var leftMeter = Content.getComponent("VULeft");
      const var rightMeter = Content.getComponent("VURight");
      
      reg timer = Engine.createTimerObject();
      timer.setTimerCallback(function()
      {
      	leftMeter.setValue(Engine.getMasterPeakLevel(0));	
      	rightMeter.setValue(Engine.getMasterPeakLevel(1));	
      });
      
      
      timer.startTimer(30);
      

      I cant think of any reason why the VU on my plugin would show much lower volume than VU on HISE Master.

      Also, I do have this enabled in all extra definitions within the HISE project.

      ENABLE_ALL_PEAK_METERS=1
      

      Here are pics to show the master volume differnces.

      HISE MASTER
      HISEmaster.jpg

      PLUGIN MASTER
      PluginMaster.jpg

      Any ideas or suggestions?

      Y 1 Reply Last reply Reply Quote 0
      • Y
        yall @soundsync
        last edited by

        @trillbilly either your movie strip is not good or you misconfigured the slider or the mid-value

        soundsyncS 1 Reply Last reply Reply Quote 0
        • soundsyncS
          soundsync @yall
          last edited by

          @yall Slider I have values set as such.

          Untitled.jpg

          I dont see any of this creating an issue, do you?

          1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey
            last edited by

            Why don't you use the Peak Meter floating tile?

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

            soundsyncS 1 Reply Last reply Reply Quote 0
            • soundsyncS
              soundsync @David Healey
              last edited by soundsync

              @d-healey Didnt eveen realize it was there lol. Kind of limited in design but can work for some purposes. It still seems to not quite be at the same peak as the master. Maybe because when Im not using a saved project (just kind of fidgeting with no project) it always loads my previous saved projects preferences.

              For the MatrixPeakMeter, how do you use the Channel Indexes?

              Also, can you lay it horizontally?

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @soundsync
                last edited by

                @trillbilly

                Kind of limited in design

                You can style it with LAF.

                how do you use the Channel Indexes?

                If I remember correctly it's an array, [0, 1] would be channels 1/2.

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

                soundsyncS 1 Reply Last reply Reply Quote 1
                • soundsyncS
                  soundsync @David Healey
                  last edited by

                  @d-healey awesome, thank you!

                  Do you know if it can be used horizontally instead of vertically?

                  David HealeyD 1 Reply Last reply Reply Quote 0
                  • David HealeyD
                    David Healey @soundsync
                    last edited by

                    @trillbilly Yes you can.

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

                    soundsyncS 1 Reply Last reply Reply Quote 0
                    • soundsyncS
                      soundsync @David Healey
                      last edited by

                      @d-healey How do you do it? I didn't see it in the properties.

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @soundsync
                        last edited by

                        @trillbilly It's just the way you draw it with LAF

                            // Peak meter floating tile
                            laf.registerFunction("drawMatrixPeakMeter", function(g, obj)
                            {
                            	var a = obj.area;
                            	var value = 0;
                        
                                for (x in obj.peaks)
                                	value += x;
                        
                                value = value / obj.peaks.length;
                                
                            	g.setColour(obj.itemColour);
                            	g.fillRoundedRectangle(a, 8);
                                
                            	g.setColour(Colours.withAlpha(obj.itemColour2, 0.2 + value));
                        
                        		if (a[2] > a[3])
                        		{
                        			a[2] *= value;
                        		}
                            	else
                            	{
                        	    	a[1] = a[1] + a[3] - a[3] * value;
                        	    	a[3] *= value;
                            	}
                            	
                            	g.fillRoundedRectangle(a, 8);
                            });
                        

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

                        soundsyncS 1 Reply Last reply Reply Quote 0
                        • soundsyncS
                          soundsync @David Healey
                          last edited by

                          @d-healey Got it, thank you. I'll be diving into LAF I guess lol

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

                          10

                          Online

                          2.4k

                          Users

                          13.8k

                          Topics

                          120.6k

                          Posts