Home › Forums › General › Programming › [SOLVED] Button question
Tagged: Buttons, interraction to each others
- This topic has 7 replies, 2 voices, and was last updated 7 years, 4 months ago by JDXA.
-
AuthorPosts
-
November 26, 2016 at 2:35 pm #70353
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 S4Well…
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 OFFMy 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.
November 27, 2016 at 10:02 am #70354when “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.
November 27, 2016 at 11:08 am #70356Hello,
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 ???
November 27, 2016 at 12:14 pm #70360select 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.
November 27, 2016 at 1:32 pm #70361Ok, I’m going to test…
Thanks a lot.
I tell you if it’s ok !
November 27, 2016 at 1:34 pm #70362Well, I have an error message :
At line [8]: [string “buttonS1”]
Error message: [string “buttonS1”]:8: attempt to call method ‘getModulatorbyName’ (a nil value)
November 27, 2016 at 2:05 pm #70363Ah, sorry I think this is case sensitive: getModulatorByName.
November 27, 2016 at 4:04 pm #70364 -
AuthorPosts
- The forum ‘Programming’ is closed to new topics and replies.