Welcome to %s forums

BrainModular Users Forum

Login Register

multiplying arrays

I need help on a Patch
Post Reply
goyya76
Member
Posts: 69
Contact:

Unread post by goyya76 » 25 May 2009, 14:38

Hello guys,

i tried to "play" with the new phase vocoder module...and a question came to my mind: how can i multiply the elements of two arrays? i mean, given array A and array B, do A1 x B1, A2 x B2,..., An x Bn (where n is the lenght of the array) and put the result in another array...i hope i'm not missing some simple module/script/wiki page...(maybe the roll array module??)

Thanks in advance!

Cheers,
Goyya :)

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 25 May 2009, 14:56

A lot (all?) of A+B, A-B, A/DB, etc modules takes arrays as inputs just the way you describe. I don't remember what happens if you use two different array sizes instead of one array and one single value or two arrays of same size, though. Check it if you need something like that.

(IIRC, Senso said in a post long ago that all data types are in fact arrays, with the "normal" data being an array of length 1.)
Bjørn S

goyya76
Member
Posts: 69
Contact:

Unread post by goyya76 » 26 May 2009, 17:59

Thanks Bsork!

Post Reply

Who is online

Users browsing this forum: No registered users and 54 guests