Welcome to %s forums

BrainModular Users Forum

Login Register

XY to fader

I need help on a Patch
Post Reply
r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 29 May 2013, 22:40

I try to control fader with XY pad. If center of XY is 0% than any border is 100%, respectively center = fader min and border = fader max.
any ideas how to do that?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 29 May 2013, 23:10

mm think you could use math to remap 0..1 range to -1..1 range for booth X and Y (or rescale patch) (or by multipling by 2 and subtract 1) then use a MAX(AB) with booth XY going to A and B, but just before going to the max you add abs (absolute) math module

ie X 0.1 becomes X -1..1 ---> abs = center will be 0, up or down will be going to 1 when reaching border.
same for Y, then the MAX(AB) will take the most important value in acount btwn new XandY

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

Unread post by nay-seven » 29 May 2013, 23:22

Well done 23fx, works fine !

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

Unread post by r.erorr » 29 May 2013, 23:30

yea!
thanks fore math. . . great


joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 30 May 2013, 07:54

yes well done but what is the advantage of having a 2 parameters controler and reduce it for one ?

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests