Welcome to %s forums

BrainModular Users Forum

Login Register

Invert switch

I need help on a Patch
Post Reply
gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 30 Jan 2009, 04:28

Total noob question but I can't figure out how to invert the output of a switch. I am trying to make a switch that sets a volume module to 0 dB when enabled. (opposite of mute)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 30 Jan 2009, 09:46

did you try the math/logical (Not)A module? if your switch is off it will then send 1, and if it's on 0.

antwan
Member
Posts: 164
Contact:

Unread post by antwan » 30 Jan 2009, 10:12

Also, if you want it to send 0db when enabled and -80dB (instead of 1) when disabled try this:

Switch.out > Not > * (with -80 set in B port) > Volume

antwan

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

Unread post by martignasse » 30 Jan 2009, 10:29

And to complete the way you can manage a value with a switch or a slider,
you can use the affine function A*in+B module to 'map' the 0 to 1 range to whatever you need (ex : -80->12).

not necessary for what you ask, but very useful for lot of things.
Martin FLEURENT - Usine Developer - SDK maintainer

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 30 Jan 2009, 13:02

23fx23 wrote:did you try the math/logical (Not)A module? if your switch is off it will then send 1, and if it's on 0.
That's the one,thanks.!
I also figured out that instead of inverting the switch I could also edit the colors so that off is illuminated and on is not...

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 30 Jan 2009, 14:08

yup invert color is a nice and simple solution.

Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests