Problem with Combos after update to new Release

Home Forums General Programming Problem with Combos after update to new Release

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6198
    artofnois
    Participant
      • Topics: 26
      • Replies: 40
      • Total: 66

      To Atom:

      I have update today to  Ctrlr 5.1.2 build:1254  nightly and now all my combos send always values of the number of line selected, no the value of the line.

      My computer is a iMac with OS 10.8.2 and running ctrlr in standalone mode.

      I have make this simple panel that is a combo with 2 contents lines

      R6=6

      R7=7

      When selescted, I print on console the value send to modulator…. 0 or 1

       

       

      Attachments:
      You must be logged in to view attached files.
      #6200
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        In LUA instead of

        console( "Valor "..value )
        

        Do

        console( "Valor "..mod:getValueMapped() )
        

        What’s happening is correct, you get the INDEX of the value, and since the modulator you are watching has a LIST of values and is not a normal linear modulator, you need to know what you want from it. You can get both the “INDEX THE MODULATOR IS POINTING TO” and the “MAPPED VALUE TO THIS INDEX”.

        By default the callback passes the INDEX i left it untouched, but there are special methods for modulators that let you set/get mapped/non-mapped values:

        for a moment put in the lua method this:

        debug (what (mod))
        

        and look at the output in the console, it will list all available methods for the “mod” object. I know it’s not documentation but it’s better then nothing. You can do debug (what(O)) with any variable in LUA.

        #6207
        artofnois
        Participant
          • Topics: 26
          • Replies: 40
          • Total: 66

          ok atom  i will try now. But the same panel running on version ctrl.386 is still working today….

           

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

            like i wrote, some stuff changed.

            #6209
            artofnois
            Participant
              • Topics: 26
              • Replies: 40
              • Total: 66

              ok, thanks

               

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