HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting constant modulator's value

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 728 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.
    • d.healeyD
      d.healey
      last edited by

      I'm using setIntensity to set the value of a constant modulator for pitch, is there a command to retrieve the current value?

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        You mean something like "getIntensity()"? Nope, it's not there yet, but if you need it, I'll add it (should be a few lines of code).

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

          Well the reason I want it is I have a knob on the interface to set the modulator's value and I also want to set it at another point in the script based on a key switch. I was thinking if I could retrieve its current value I would be able to set a new value relative to the current one. I suppose I could probably do the same thing actually by using two constant modulators

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

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            I would recommend using two mods for this case. There's almost no performance penalty (voice start modulators are very fast) and you don't have to deal with edge cases (what if the delta sum goes beyond the normalized modulation range etc.)

            I'll add it anyways (I didn't need it yet, but there may be some cases where it might come in handy).

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

            57

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts