Welcome to %s forums

BrainModular Users Forum

Login Register

inverse array values

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

Unread post by r.erorr » 08 Jul 2012, 20:27

hi.
I want to invert manually drawn log scale to exp scale. fore example if array size is 10 then
exp = log
1 = 9
2 = 8
3 = 7
4 = 6
5 = 5
6 = 4
7 = 3
8 = 2
9 = 1

But I have max array size and not only integer values. So I need some system how to do that. any ideas?

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

Unread post by nay-seven » 09 Jul 2012, 07:26

the swap array module can be a start..?

caco
Member
Posts: 306
Contact:

Unread post by caco » 09 Jul 2012, 09:27

How about (max value in array - value) + min value in array..?

1 = (9-1)+1) = 9
2 = (9-2)+1) = 8
3 = (9-3)+1) = 7
4 = (9-4)+1) = 6
5 = (9-5)+1) = 5
6 = (9-6)+1) = 4
7 = (9-7)+1) = 3
8 = (9-8)+1) = 2
9 = (9-9)+1) = 1

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

Unread post by r.erorr » 09 Jul 2012, 12:26

sorry... the question is right, but example wrong - yes, this is swap array.
maybe it is possible convert XY values to array? because I got this trayectory on panner module symetric XY mode.
Image

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

Unread post by nay-seven » 09 Jul 2012, 15:46

mm, not sure to follow here..we talk about array or XY pad..?
about XY , maybe edit layout/inverse Y axis ..?

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

Unread post by r.erorr » 09 Jul 2012, 17:24

We talk about array, but maybe trajectory on symetric XY can help here? because this is exactly what I need in array.
Image

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

Unread post by nay-seven » 09 Jul 2012, 18:26

so it's seems that swap + an 1-x module works :
Image

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

Unread post by r.erorr » 09 Jul 2012, 23:10

Ou, great, thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests