Forum
    • Categories
    • Register
    • Login

    HISE 4.1: Obtaining Peak/RMS Values from Script to a Scripted UI Meter?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 40 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.
    • B
      brucerothwell
      last edited by

      I'm building a stereo VU meter in HISE 4.1.

      Current status:

      Custom filmstrip needles working
      NeedleL and NeedleR animate correctly using setValue()
      MatrixPeakMeter works
      AudioAnalyser works
      Both successfully monitor a ScriptFX processor when ProcessorId = "Script FX2"

      What I'm trying to do now is obtain a real-time audio level value in script so I can drive the custom needles.

      Things I've already tried:

      Scriptnode core.peak
      dynamics.envelope_follower
      control.smoothed.parameter
      Synth.getEffect("Script FX2")

      Results:

      MatrixPeakMeter and AudioAnalyser clearly receive valid audio/meter data from Script FX2.
      Synth.getEffect("Script FX2") returns a valid processor object.
      getNumAttributes() returns 0.
      I have not found a way to access the meter values from script.

      Question:

      What is the recommended HISE 4.1 workflow for obtaining peak or RMS values from a ScriptFX processor and feeding them into a custom scripted UI meter?

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

        @brucerothwell Why use script node for this? The built in peak meter floating tile already does what you want I think.

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

        1 Reply Last reply Reply Quote 0
        • B
          brucerothwell
          last edited by

          David --

          Thanks for your reply.

          I am new to HISE.

          I already have assets created for building a VU meter plugin, and haven;' been able to figure out to feed system audio to the animated needle,

          My assumption is that I need to use scripting.

          I have, however, figure out how to use the MatrixPeakMeter, and see that responding to audio.

          Additional observation:

          In Scriptnode, the core.peak node offers "Add new external DisplayBuffer".

          Creating buffers results in persistent entries (#1, #2, #3, etc.) that remain after saving the archive, closing HISE, and reopening the project.

          Deleting the core.peak node does not remove these buffers.

          Can external DisplayBuffers be accessed from scripting, or are they intended only for AudioAnalyser / visualization components?

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

            @brucerothwell said in HISE 4.1: Obtaining Peak/RMS Values from Script to a Scripted UI Meter?:

            Can external DisplayBuffers be accessed from scripting, or are they intended only for AudioAnalyser / visualization components?

            I don't know, I haven't used them.

            @brucerothwell said in HISE 4.1: Obtaining Peak/RMS Values from Script to a Scripted UI Meter?:

            I have, however, figure out how to use the MatrixPeakMeter, and see that responding to audio.

            The peak meter floating tile can be styled using custom look and feel to apply your filmstrips (search the forum, there are examples showing this).

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

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

            17

            Online

            2.4k

            Users

            13.8k

            Topics

            119.8k

            Posts