Problem with global variables

Home Forums General Using Ctrlr Problem with global variables

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7936
    dasfaker
    Keymaster
      • Topics: 80
      • Replies: 793
      • Total: 873
      • ★★★

      Hi Atom

      I posted about this in the Issue tracker but I can’t add a new comment there.

      I’ have the following sysex formula for one modulator: F0 00 20 33 01 k1 6f k0 79 xx F7.

      When the panel receives the following sysex message (F0 00 20 33 01 00 6f 00 79 xx F7) the modulator reacts fine to this message.

      But when global variable k1 is not 00, the modulator doesn’t react to the incoming message ((F0 00 20 33 01 01 6f 00 79 xx F7).

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

        I changed the tracker and reposted your bug.

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

          I’ve set this formula:
          f0 k0 20 k1 k2 10 ls ms f7

          And i have 3 sliders that are linked to k0,k1,k2 and the input messages get in fine, but Ctrlr needs a restart if the globals change to match the input. This is because the memory wildcards that are used for comparison get updated on restart, can you confirm that this works this way ? If so i’ll try to fix that problem, but it might be a problem to update ALL wildcards when changing a global variable, it should be more specific, that is only update those modulators that use globals in formulas.

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

            Yes, it seems that I need to reopen the panel each time I change the global variable to make it work.

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

              I’ll try to provide a LUA interface to recreate the patterns, so you can call it when you want on the modulators you know are using global variables.

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