Lua called when modulator clicked VS value changes?

Home Forums General Programming Lua called when modulator clicked VS value changes?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #649
    msepsis
    Participant
      • Topics: 219
      • Replies: 732
      • Total: 951
      • ★★★

      Every modulator has a parameter for attaching a Lua script that’s called if that modulator’s value changes.
      Is it possible to adjust that parameter so the script is called not simply when the value changes but when the value is changed due to user interaction (mouse click)?

      This would avoid chain reactions caused if you have Lua scripts handling value changes on interactive modulators…

      Follow me? In many cases additional scripting can be done to avoid this but in some situations it’d be handy to differentiate whether a script is called when the modulator’s value is changed due to a mouse click vs another script controlling its value.

      Implementing this would likely have consequences, not necessarily good ones, on panels already created… but thought I’d bring it up as I’ve often found myself in this trap..

      maybe there could be a toggle switch by the "Called when modulator’s value changes" that allows you to ignore calling a script if the value is changed by another Lua script?

      Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

      #4530
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        I can add 3 methods, that will be triggered from 3 subsystems, midi/gui/host but i can’t change the already existing method.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 86 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