Welcome to %s forums

BrainModular Users Forum

Login Register

0 to 1 to trigger "next" in listbutton

I need help on a Patch
Post Reply
tpresto
Member
Posts: 49
Contact:

Unread post by tpresto » 20 Mar 2011, 05:23

Does anyone know how I could use multiple "0 to 1" module to advance a single listbutton selection. the 0 to 1 modules are in separate subpatches -- well, actually sub-sub-sub patches -- and, under the condition that switch values change from 0 to 1, I want usine to select the next option in a single listbutton. I want to make this possible from multiple 0 to 1 modules. I have been able to make this work from one 0 to 1 as follows:

switch 1 --> 0 to 1 --> Sendbus (i.e. NEXTBUTTON4DRUMS) ... Getbus (i.e. NEXTBUTTON4DRUMS) --> "Next" of listbutton
and then in another subpatch, i have the below.

switch 2 --> 0 to 1 --> Sendbus (i.e. NEXTBUTTON4DRUMS) ... Getbus (i.e. NEXTBUTTON4DRUMS) --> "Next" of the same listbutton

The problem is that only the first instance will works, but not the second -- even when they are identical, other than location.

I think that maybe the problem is that since I'm sending both instances to the same data bus, the contradictory data keeps it from working in both cases.

Does anyone have any suggestions?

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

Unread post by nay-seven » 20 Mar 2011, 09:26

yes, cause it's not a good idea to have several sendbus with the same name, just rename your bus NEXTBUTTON4DRUMSa and NEXTBUTTON4DRUMSb for example

tpresto
Member
Posts: 49
Contact:

Unread post by tpresto » 20 Mar 2011, 16:27

I figured that the name was creating the problem. Thank you! For what i'm using this for, I will need to create large numbers of buses if they must all be named differently. Is there a more efficient or more organized way to accomplish this. As it is now, I would have about 50 data buses coming into the "next" of a single list button!

gthibert
Member
Posts: 46
Location: Chicoutimi, Québec
Contact:

Unread post by gthibert » 20 Mar 2011, 16:35

You can use the same bus name if you connect an ''has changed'' module to the on/off of the bus. Look at this example :
http://sensomusic.com/forums/uploads.ph ... olybus.pat
Guillaume Thibert
www.cemproduction.com

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

Unread post by nay-seven » 20 Mar 2011, 17:12

well done gthibert !

tpresto
Member
Posts: 49
Contact:

Unread post by tpresto » 21 Mar 2011, 23:21

That works amazingly. At first, I couldn't tell what you were talking about, as I had version 5.17, and there are no "on/off" options for buses. I upgraded, and works like a charm. THANK YOU!

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 21 Mar 2011, 23:49

yeah, i skiped the bus on-off thing too, it's hot trick :)

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests