Making Lua scripts snapshot-friendly

Home Forums General Programming Making Lua scripts snapshot-friendly

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34361
    piRoN
    Participant
      • Topics: 3
      • Replies: 5
      • Total: 8

      So in my Roland MKS-7 panel I’ve got mostly straight-up sysex modulators, but there’s a handful of MKS-7 settings that use bit-packed parameters. Right now I’ve got those switches calling a Lua script when their value changes, which just gets the values for all the relevant controls, builds the midi message and shoots it out. That works great, but it does mean that those settings aren’t being output when you do a “Send Snapshot”.

      I couldn’t find any specific info on how the snapshot functionality works, so I’d like to know if there’s a “proper” way to set up these sort of scripts to make sure that they work correctly with it.

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

        I thought i added a special callback on snapshots, but i see it’s not there (must have slipped my mind). I will add two callbacks that will be triggered right before and right after a snapshot has been sent, so you get a chance to add stuff to the snapshot if needed.

        #34442
        piRoN
        Participant
          • Topics: 3
          • Replies: 5
          • Total: 8

          Awesome, cheers Atom.

          #42071
          mim
          Participant
            • Topics: 3
            • Replies: 8
            • Total: 11

            Wow, a working MKS-7 panel !
            Is there a way to find it ?

            Thanks

          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 71 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