last used modulator

Home Forums General Programming last used modulator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #68002
    Possemo
    Participant
      • Topics: 14
      • Replies: 638
      • Total: 652
      • ★★★

      I am searching a way to get the value of the last used modulator. I could use the visible Name too.

      I tried an uiLabel set to view the last modulator but this code does not work:

      panel:getModulatorByName("LastUsed"):getComponent():getProperty("uiLabelText")

      Is there a way to get the last used modulator with Lua?

      #68003
      Possemo
      Participant
        • Topics: 14
        • Replies: 638
        • Total: 652
        • ★★★

        Ah, maybe it helps when I tell what I am trying to do:

        serveral buttons should call the same Lua script. All buttons should feed the same variable with different values.

        Thanks for reading.

        #68004
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          Create a variable “lastUsedMod”, and in “called when modulator value changes” for every needed modulator assign the variable to the modulator Vst index.

          lastUsedMod = mod:getVstIndex()

          #68005
          Possemo
          Participant
            • Topics: 14
            • Replies: 638
            • Total: 652
            • ★★★

            Thank you dasfaker!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Programming’ is closed to new topics and replies.
          There is currently 0 users and 110 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr