HISE Logo Forum
    • Categories
    • Register
    • Login

    Replacing ScriptModulationMatrix.getModValue in the new HISE

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 71 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.
    • GoodflowG
      Goodflow
      last edited by Goodflow

      While the relocation of modulation values to LAF objects is a welcome upgrade, the old ScriptModulationMatrix.getModValue(var component) granted access to modulation values from anywhere, which made animated displays a breeze. You could simply use Slider 1's "getModValue" in the LAF of Slider 2, and it would react to the manual+modulated values of Slider 1.

      Now I'm not sure what the best practice is for this sort of thing.

      - Linking two Sliders doesn't seem to cause any inheritance of modulation values

      - adding a matrixTargetId to Slider 2 doesn't make a difference; it can't pick up obj.modulationActive or the respective values unless it's directly assigned

      - I tried sending modulation values from Slider 1's LAF into a registered variable, then to Slider 2's LAF. No luck.

      Is there a way to safely grab modulation values outside of their dedicated LAF objects?

      Modulator.getCurrentLevel() does the job.

      Oli UllmannO 1 Reply Last reply Reply Quote 1
      • Oli UllmannO
        Oli Ullmann @Goodflow
        last edited by

        @Goodflow
        That's right. But how do you get the information about which modulation mode was selected? In other words, whether “scaled,” “unipolar,” or “bipolar” was selected?

        Perhaps via “modulationMatrix.getMatrixModulationProperties” or “modulationMatrix.getComponent,” or you could use “modulationMatrix.setConnectionCallback” and then write the information to a variable.

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

        27

        Online

        1.9k

        Users

        12.3k

        Topics

        107.3k

        Posts