HISE Logo Forum
    • Categories
    • Register
    • Login

    Problem with vu meter in fx plugin (Solved)

    Scheduled Pinned Locked Moved Scripting
    8 Posts 3 Posters 402 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.
    • ulrikU
      ulrik
      last edited by ulrik

      I'm working on a midi controlled fx plugin using 10 "FX Slots" and to test it while developing I have a sine generator inside it,

      Skärmavbild 2021-10-12 kl. 08.24.10.png

      when I compile it for testing in daws I just remove the generator and move the Slots and attach them to the main container.

      Skärmavbild 2021-10-12 kl. 08.21.56.png

      I open it as an "au midi-controlled effect" in Logic and route the audio tracks to the plugin and it works great.

      Skärmavbild 2021-10-12 kl. 08.32.01.png

      Now I have implemented a VU meter, I'm using a modified version of Christophs VU meter, and in Hise it works fine but compiled it doesn't work at all.
      What can I have made wrong?
      Any hints are appreciated.

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ulrikU orangeO 2 Replies Last reply Reply Quote 0
      • ulrikU
        ulrik @ulrik
        last edited by

        @ulrik I also tried to load Hise, as a plugin, in Logic and develop from there, but you can't get audio in to Hise as I understand it, I can only load Hise as an instrument in Logic

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @ulrik
          last edited by

          @ulrik

          the VU meter script picks up the signal using this code:

          if(this.data.fx)
          			{
          				lvalue = getNormalizedPeakValue(this.data.fx.getCurrentLevel(0));
          				rvalue = getNormalizedPeakValue(this.data.fx.getCurrentLevel(1));
          			}
          			else
          			{
          				lvalue = getNormalizedPeakValue(Engine.getMasterPeakLevel(0));
          				rvalue = getNormalizedPeakValue(Engine.getMasterPeakLevel(1));
          			}
          

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            @ulrik Have you used ENABLE_ALL_PEAK_METERS=1 extra definition in Hise settings?

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

            ulrikU 2 Replies Last reply Reply Quote 0
            • ulrikU
              ulrik @orange
              last edited by

              @orange yes

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @orange
                last edited by

                @orange the VU meter works with a sine wave generator but as soon as I remove the generator the vu fails

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                ulrikU 1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @ulrik
                  last edited by ulrik

                  @ulrik Stupid me, I forgot to:

                  inline function setModule(vuMeter, module)
                  	{
                  		vuMeter.data.fx = module;
                  	}
                  
                  VuMeter.setModule(VuMeter.outputMeter, Synth.getEffect("MasterOut"));
                  

                  Now it's working, sorry for this thread, you can delete it

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

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

                    @ulrik said in Problem with vu meter in fx plugin (Solved):

                    you can delete it

                    Leave it for others who have the same issue :)

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

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

                    41

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    101.9k

                    Posts