Welcome to %s forums

BrainModular Users Forum

Login Register

math question

I need help on a Patch
Post Reply
seamus
Member
Posts: 484
Contact:

Unread post by seamus » 06 Jun 2012, 01:31

I have a knob on a synth that when engaged is .75 and when disengaged is .25

The trouble is i need to pass along the values of when .25 = 0 when .75 = 1

how do I patch this?

seamus
Member
Posts: 484
Contact:

Unread post by seamus » 06 Jun 2012, 02:37

http://www.sensomusic.com/forums/upload ... roblem.JPG

here is a visual.
I cant pass along values from the synth to my usine switch because the values are .25 and .75 instead of 0 and 1 which the switch needs to be updated

r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 06 Jun 2012, 03:17

you can use mapper (value) module and set your inputs and outputs as you want.

r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 06 Jun 2012, 03:21

or maybe more simple: use A=B module and set B value 75.
This means 75 = 1, not 75 = 0

seamus
Member
Posts: 484
Contact:

Unread post by seamus » 06 Jun 2012, 07:05

And the .25 for zero? I was having problems with the 0 and 1 messages not being able to be passed on properly.
I will see of I can successfully patch it and post a screenshot for the lone curious fellow who happens to see.

iococoi
Member
Posts: 211
Contact:

Unread post by iococoi » 06 Jun 2012, 09:24

how about the Auto Scale script? ...Data>Data Manipulation>Auto Scale[script]

~io

caco
Member
Posts: 306
Contact:

Unread post by caco » 06 Jun 2012, 11:21

You could also take the output of the knob, add 0.5 to it and then use the trunc module to round down to the integer.

0.25 + 0.5 = 0.75. Trunc will then output zero.

0.75 + 0.5 = 1.25. Trunc will then output 1.

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests