Forum

    • Register
    • Login
    • Search
    • Categories

    Unified VU Meter

    General Questions
    2
    5
    97
    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
      Steve Mohican last edited by Steve Mohican

      Normally .getCurrentLevel is used for VU meters. But with this method, left and right level information is held individually. getCurrentLevel(0) is for left, getCurrentLevel(1) is for right channels.

      How about a unified, one VU meter? Not left and right individually. How can we make a One VU Meter that shows both channels in one strip?

      HiseSnippet 1487.3oc4X0saSbDEdV6rgDCtBp.0d4nbkohlZmBzpVUgA+CjRB1DmXZunBMd2w1iX1YVs6rIXPHwiFOB8QnOB8MH8L6306tIlDKqRJQMJ2LmYNy7c966bV2MP5PCCkAHq02ehOEYcM6dSDpwMFSXBz1MQV2x9Ix.1ajBEgi6e.1ipnAnGMwmDFRcQVVEer9nVquBJ9u+9AOhvIBGZpHDpuj4P2g4wToR6V+oLNuMwktOyKyoua8scjhFRtLBfUQ6pHehyqHinOinOVAaj0psbYJYPOEQQCQVq7Ho6jdikGILmuOKjMfS0Kpg5AWjQbaI2UiXsTTiwLta2DyODgrr6l5LJZbF2zdWlKal7Tmx0i2.mpQV+gUgyBd0xBupKN7rx.uULv6F18bBX9pzczX6p1aKfPzPBDBxBKyYQE7KX2.hlTgZSOxqnsCfEyznx8qV8N36Us5s+4xkJWBBDgJ7gj.bmHkejRGpw+BNNEYyQTUqgCoNpJajt6FFEyp5SExA0.sRdUPuFROeo.VTYi3ci0JUitDAk+wUwr8rWpbou66vpwrPL7uTvmfGJCvb5PE1YLQ.mcS7SjGgcHB7QTr1nwDbGAUmNuqNcFzlnvgPHJDOPpFmnWn9xMu1lgTkNOMnAgyG.IjUFFIbTLonxsKW5skKgg+hsE8I6S3QzJsDiXBpF7MoNrAv80VFncRsINP9QkTuVrAFED.l2NzCo7JUu82TCBBZSDWtz6JWJwXSPihDXvSk6MMVkfGvE7Loh1A.Vo2VZ8Ru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X.nKh2vi3DHeoi4GeQyHtVrDvtEw+.tqauqdMd1u5hsc0Mqh7f9puzwQmS+sf+Y95r0Rny2uD5b2kPm6sD5b+kPmeXIz4GOScziz7vHkzyj+CB51J9W+xxxLUWbo.5e.7BKcQI
      
      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        ustk @Steve Mohican last edited by

        @Steve-Mohican So you mean a mono peak meter (note that VU is not the same thing).
        The way to do this is to compare the two values L&R and take the greater of the two, that's it 😉
        Try that and if you can't I'll help with a snippet...

        Tired to press F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

        S 1 Reply Last reply Reply Quote 1
        • S
          Steve Mohican @ustk last edited by Steve Mohican

          @ustk said in Unified VU Meter:

          @Steve-Mohican So you mean a mono peak meter (note that VU is not the same thing).

          I didn't know that VU meter and peak meter is different. So technically what we do with .getCurrentLevel for left and right channels individually is not VU meter?

          The way to do this is to compare the two values L&R and take the greater of the two, that's it 😉
          Try that and if you can't I'll help with a snippet...

          Hmm I just thought that a mono meter should be a mono sum or something. I did what you suggested withMath.max . I hope it is correct now....

          HiseSnippet 1492.3oc4X0saSbDEdV6rPhAWEpnR8xQ4JmJZXsKPqJphE7OfKIXSbhobQEZ7tisGwryrZ2YSvfPhGm9XviPeD5iPeCROytd8tNwDbsJUjVqnHMmybl467+Y1tARGZXnL.YrwAS7oHiqZ1ahPMt9XBSfZ2.Y7UlORFvdsTnHbb+CwdTEM.8fI9jvPpKxvn3C0a0Xi0Pw+9y68.BmHbnYjPn9RlCcWlGSkQsq8iYbdKhK8.lWtceK61NRQcIWFAvpnoExm37RxH5SH5sUvDYboltLkLnmhnngHi0dfzcRuwxiEI6uOKjMfS0Kph5AGTB4VRtqFwZpn5iYb2topeHBYX1MyXTLwXbcy8XtrYzyLJaFy.mIQd6gQgyCdUyCOqkGdF4f2ZIv6Zl8bBX9pLNZrcEy1BvEMj.tf7vJYunB+VAy5f2jJT63QdIsU.rXlDUtik0Mv21xZ66VtT4Rf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jGlh0K29V2NkXs7tYHrnZ9Qif00xWoaOVVSdzebulBB3z6QAswsSnCnrZa2bGXDOjFmcTMufYjqkm7oqM92taf0EuGI9u2XIEWN3t.KXgtm4aNr4z9oMgFcbXZ4YUtGRh3pTpymFsmTH8GKELm7Qm6Sgr+QinyE2rPE59JE7HtLJW2deJmRByRsvN16BOeiD.1I5JZK9HccMVR+0Wal.WrN2+yqVCWNA1kL6CNIG8smTFLcIdl5T8ii1CCoGPhgyom9QKT95RwOmddGyYmEckcL+iLubw+CMu7mhRPP8++mL1v+F2gGwIP9BmjOcgt1x5wT.8VD+YS2vbO8Z7ruYgoo0NVHOnC0KbbzQGeKXeVrL0VAY9tUPlasBxb6UPl6rBx78qfL+v4Jid3f6GojdIw+.gtMi+1QFFIyBEmJf9KGrxOf.
          
          ustk 1 Reply Last reply Reply Quote 0
          • ustk
            ustk @Steve Mohican last edited by ustk

            @Steve-Mohican

            A VU meter has an integration time of typically 300ms
            alt text
            Technically, it is not a peak meter either because you cannot measure all the peaks. A reading of the level every 30ms misses out a lot of samples in between.

            At 48KHz you get one sample every 1440 samples so even if the Hise meter integrates the falling part (afair it's a decreasing factor so not a time constant) that's a lot of samples passing through... I am no expert in this but I guess the principle is here. So we are even further from a true peak meter which needs oversampling and interpolation between samples (not always the case for that one), which makes TRUE PEAK meter never really true peak after conversion anyway...

            In short, in Hise without going DSP you have no way to make a real "standard" meter.
            The .getCurrentLevel method gives the reading of the level that is already smoothed out some ways (at least for the falling part if not for the rising one), so it's cool for making a meter-like animation, but one cannot call it a proper standard meter name in a plugin, be it VU, SAMPLE PEAK, TRUE PEAK, LUFS...

            Your Math.maxmethod is good 😉

            Tired to press F5 in the forum...
            Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

            S 1 Reply Last reply Reply Quote 1
            • S
              Steve Mohican @ustk last edited by

              @ustk Thank you so much for this awesome technical explanation, now understood sir 🙂

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

              7
              Online

              810
              Users

              5.5k
              Topics

              51.8k
              Posts