[SOLVED] Button question

Home Forums General Programming [SOLVED] Button question

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #70353
    JDXA
    Participant
      • Topics: 10
      • Replies: 45
      • Total: 55

      Hello World,

      I have a question about Buttons and possibilities…

      I explain :

      I have 4 buttons (A1 to A4) at the left side and 4 buttons (S1 to S4) at the right side. My problem is only into CTRLR (because it works on my JD-XA)

      So,

      A1 S1
      A2 S2
      A3 S3
      A4 S4

      Well…

      I can ON all the A buttons (in CTRLR each opened button change its color) but If I press button S1 then A2, A3, A4 must be OFF (the color in CTRLR must change),

      if I press S2 then A1, A3 and A4 must be OFF,
      if I press S3 then A1, A2 and A4 must be OFF
      if I press S4 then A1, A2, A3 must be OFF

      My problem is to OFF into CTRLR A buttons when I press S buttons

      I don’t know how to do that…

      If you have a solution… I’ll be very happy !

      Thanks a lot for your help,

      Xavier-Joseph from Reunion Island,

      • This topic was modified 7 years, 4 months ago by JDXA.
      #70354
      Possemo
      Participant
        • Topics: 14
        • Replies: 638
        • Total: 652
        • ★★★

        when “Send MIDI from other members of the group” is set on all buttons and all buttons have the same “Radio group” then only one button will lit, e.g. it will disable all other buttons. One prob I had: value ON state must be 1 and value OFF state 0 otherwise this won’t work. Of course “Button is toggle button” has to be set.

        If this won’t cut it for you, you would have to make a Lua script.

        • This reply was modified 7 years, 4 months ago by Possemo.
        #70356
        JDXA
        Participant
          • Topics: 10
          • Replies: 45
          • Total: 55

          Hello,

          I’ve tried this option…

          Well, when I press a S button, all the A buttons lite off… but If I want to reopen some A buttons at the same time, it’s impossible…

          I think, I would like to send just an implusion and only 1 time…

          It’s complicate to explain but I’m going to try !

          The JD-XA has 4 analog parts + 4 Digital parts (and each Digital part has 3 partials).

          There’s a button “Poly Stack” to play all the Analog Parts in Polyphonie…

          If I press Poly Stack and I haven’t lite off all my CTRLR buttons, when I live Poly Stack, my JD-XA dels are lite on or off and in CTRLR, some are lite on or off !

          No correspondance !

          I have to click on each buttons to lite off.

          It’s only a graphical problem because all is OK on my JD-XA !

          So, I think, just an impulsion to tell them… LITE OFF (only one time) will be efficient.

          Thanks a lot for your info because you teach me another tip !

          I’m going to looking for…

          In Lua, I’m searching a demo because I’m not aware how to call a modulator…

          panel: getModulator ?

          I’m learning every day but my spirit wants to go faster !!

          A question :

          Why Slider can be move from my JD-XA and buttons no ?
          Is there a solution to pilot CTRLR from my synth ?

          If yes, it’s my solution because, I have a mirror situation between CTRLR and my JD-XA ???

          • This reply was modified 7 years, 4 months ago by JDXA.
          • This reply was modified 7 years, 4 months ago by JDXA.
          • This reply was modified 7 years, 4 months ago by JDXA.
          #70360
          Possemo
          Participant
            • Topics: 14
            • Replies: 638
            • Total: 652
            • ★★★

            select this script on button S1 “Called when the modulator value changes” or “called when a mouse is down ont this component” it should not matter:

            buttonS1=function()
            
            panel:getModulatorbyName("A2"):setModulatorValue(0,false,false,false)
            panel:getModulatorbyName("A3"):setModulatorValue(0,false,false,false)
            panel:getModulatorbyName("A4"):setModulatorValue(0,false,false,false)
            
            end

            it will disable the buttons A2, A3, A4.

            #70361
            JDXA
            Participant
              • Topics: 10
              • Replies: 45
              • Total: 55

              Ok, I’m going to test…

              Thanks a lot.

              I tell you if it’s ok !

              #70362
              JDXA
              Participant
                • Topics: 10
                • Replies: 45
                • Total: 55

                Well, I have an error message :

                At line [8]: [string “buttonS1”]

                Error message: [string “buttonS1”]:8: attempt to call method ‘getModulatorbyName’ (a nil value)

                #70363
                Possemo
                Participant
                  • Topics: 14
                  • Replies: 638
                  • Total: 652
                  • ★★★

                  Ah, sorry I think this is case sensitive: getModulatorByName.

                  #70364
                  JDXA
                  Participant
                    • Topics: 10
                    • Replies: 45
                    • Total: 55

                    Ah yes… I haven’t see the B.

                    You’re great, it’s working perfect !

                    But it’s working with : “Called when a mouse is down on this component”

                    Perhaps because it executes after the first order !

                    • This reply was modified 7 years, 4 months ago by JDXA.
                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The forum ‘Programming’ is closed to new topics and replies.
                  There is currently 0 users and 60 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