LUA examples

Home Forums General Programming LUA examples

Viewing 2 posts - 21 through 22 (of 22 total)
  • Author
    Posts
  • #2894
    atom
    Keymaster
      • Topics: 159
      • Replies: 2945
      • Total: 3104
      • ★★★★★

      well yes you need to fetch the modulator in the panel somehow and do operations on it, set it’s value or set it’s any other property, maybe change the linked component colour or maybe animate it on the screen using a timer… it’s up to you. In short you have the so-called accessor methods, that allow you to change certain properties of objects in the panel, but to do that you first need to get references to those objects (i will not use the word pointers cause lua knows of no such thing, but it might be easier if you think of what getModulatorByName() and others return)

      I’ll try to update that example and this will be clear, but i think it should be simple, just iterate through all the modulators on the panel and set their values based on the data you received in the dump, and your program is set.

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

        i updated the example it now translates the MIDI program into actual panel data and you can see the changes in realtime (assuming you have the DSI Mopho)

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