Welcome to %s forums

BrainModular Users Forum

Login Register

simple A -B toggle buttons

I need help on a Patch
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 28 Jan 2009, 00:59

I d liket to make two A - B buttons for crossfader that should be dependant ( A or B or none)
when I press A, B shoud go off, if I press B, a should go off, and If I press the active one it should go back to 0.

any idea of how i could do that? It seems a simple thing but im turning around.... if i put inputs that drive the switch then I can't act on them to change,.. should I deal with pannels and separate visual feedback from sending or it s possible do do that with switch
(kind of listbox, but when re-pressing it can turn off)..

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 28 Jan 2009, 11:01

hi 23fx23,

do you mean something like this?
Image
(B pin of the two OR modules are set to 0)

Hope it help
Martin FLEURENT - Usine Developer - SDK maintainer

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 28 Jan 2009, 12:44

well done martignasse , gone to add this to my "utils" dir patch...;-)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 28 Jan 2009, 13:03

yeah great man this is exactly what I want, so let's try to understand; I had found a soulution with panels but yours is so much more elegant, thanks!!!!

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 28 Jan 2009, 13:52

'it's just' a part of the Tabbed panel example... :D

that's why when a saw your question, i say to myself...it remind me something :)

and here it is

cool this make your day
Martin FLEURENT - Usine Developer - SDK maintainer

artificial
Member
Posts: 87
Location: Austria
Contact:

Unread post by artificial » 28 Jan 2009, 20:40

hey, today i wanted to post the same question!!! hehe

but i have a question, is it possible to do the same with more switches (5 for example)?? sorta radio buttons or something... ???

thanks in advance :)

art.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 29 Jan 2009, 00:13

Image


Ive tried to make with 5 switch:
this might not be the only/best solution but this seems to work well for 2-15 switches.
each switch will output 2-3-4-5-6 to the selector that keep the last pressed switch number and send back to the dispatcher that have "set to 0" enabled, so it will switch off all the others, (add constant 1 on input).ps( I don't use input 1 because it will be the defaut output when switch are off, that's also why it's need to start from 2 , for the selector to select the 2nd , bref...not use 1.) taken from a bsork advice
hope it can be usefull...

artificial
Member
Posts: 87
Location: Austria
Contact:

Unread post by artificial » 29 Jan 2009, 07:25

thanks for your work!!!

I'm gonna check it out in the afternoon!!

bye and thanks again!! :)

art.

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 30 Jan 2009, 01:24

martignasse wrote:hi 23fx23,

do you mean something like this?
http://mfleurent.free.fr/usine/Usine_two_switch.jpg
(B pin of the two OR modules are set to 0)

Hope it help
i've posted a different tab method in the others section that uses this method for switching, but i've used a multi-variable instead of the 'or', 'not' and 'and' logic units. hope it's helpful :)

artificial
Member
Posts: 87
Location: Austria
Contact:

Unread post by artificial » 10 Feb 2009, 10:33

Hello everybody again!!

I have a short question:

I have 4 a - b toggle buttons. Furthermore, I have 4 XY-Pads which are laying one upon the other… I would love to do this scenario:

I click on toggle button 1 and the XY-Pad No 1 comes to the fore, when I click on button 2, XY Pad No 2 should be in the foreground (as they are laying one upon the other, there should just be the activated xy-pad visible…) the same for toggle button 3 and 4…

Okay, so, how could I do this??? I mean, the buttons work, but how to get the certain xy-pads to come to the fore???

Thanks guys!!!

Art.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 10 Feb 2009, 13:28

try to watch the tabed pannel exemple in add ons by clearscreen and martignasse, this will allow you to do that by animating visibility of subpatches., (also clearscreen multivar setup inside of it is better than my upper solution).

artificial
Member
Posts: 87
Location: Austria
Contact:

Unread post by artificial » 10 Feb 2009, 14:02

ah.. thanks, but i just found a way for myself (though it's not an "elegant" way, but yeah it works... slowly i get into it a bit hehe) ... but i'm going to check the tabbed panel... ^^

cheers

art.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests