Welcome to %s forums

BrainModular Users Forum

Login Register

modules to map multiple parameters to a single array

I need help on a Patch
Post Reply
sm_jamieson
Member
Posts: 555
Contact:

Unread post by sm_jamieson » 08 Apr 2015, 13:56

Is there a module that sets up an array by providing X number of input parameters and converting to a single array output parameter ?

Also, is there a module that works the other way, i.e. a single array input parameter converting to X number of output parameters ?

In the above, X = a variable number of parameters = array size.

Or do I have to write a script to do this ?

Thanks,
Simon.

Question
Member
Posts: 156
Contact:

Unread post by Question » 08 Apr 2015, 15:09

It depends on the kind of the "x"
If I understand your question correctly, it may be very easy. If your Xs are coming from seperate sources, use an array module with up to 128 faders and connect your seperate sources to fader inputs, then the red output pin of the array module gives you a single array output.

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 08 Apr 2015, 15:21

I actually did a script to do Serial to Array, and vice versa for my needs.
So the get and set modules can be used, as well as the que data module for doing such thing.

You could create a polyphonic sub-patch to do such a think with pure-modules rather than a script.
If you are needing help let me know.

-S
"Every act of creation is first an act of destruction." -Picasso

sm_jamieson
Member
Posts: 555
Contact:

Unread post by sm_jamieson » 08 Apr 2015, 16:12

Question wrote:It depends on the kind of the "x"
If I understand your question correctly, it may be very easy. If your Xs are coming from seperate sources, use an array module with up to 128 faders and connect your seperate sources to fader inputs, then the red output pin of the array module gives you a single array output.
Yes it is separate sources into an array. I saw the "array - display or set" module and chose "no faders" as I thought it would be drawing some type of faders on the screen. In fact, you get the "fader/display" graphic anyway, which can be set invisible of course, but the number of "faders" seems to in fact be inputs for faders (or any other data source) to be connected to.
Thanks for pointing me in the right direction.

Simon.

sm_jamieson
Member
Posts: 555
Contact:

Unread post by sm_jamieson » 08 Apr 2015, 16:28

sephult wrote:I actually did a script to do Serial to Array, and vice versa for my needs.
So the get and set modules can be used, as well as the que data module for doing such thing.

You could create a polyphonic sub-patch to do such a think with pure-modules rather than a script.
If you are needing help let me know.

-S
Hi Sephult.
Serial to array would be very useful I can see, but I do not need it in this case.

I am still messing with my midi controller patch. Since it has a bunch of graphical widgets per "zone", all the inputs were getting out of hand and taking a lot of wiring up.

So my latest idea is to combine all the parameters for each zone into a sub-patch, with a single array output per sub-patch, then use polyphony to duplicate the zones, and only 1 wire per zone sub-patch instead of many.

Simon.

User avatar
rlgsbt
Member
Posts: 187
Location: Marseille
Contact:

Unread post by rlgsbt » 15 Apr 2015, 12:33

sephult wrote:I actually did a script to do Serial to Array, and vice versa for my needs.
So the get and set modules can be used, as well as the que data module for doing such thing.

You could create a polyphonic sub-patch to do such a think with pure-modules rather than a script.
If you are needing help let me know.

-S
Hi Sephult,
Your script Serial to Array would be very useful. Is it possible to get it ? I try to manage a serial datas from Arduino, but "Queue Data in Array" is not working properly. It's fine with a single parameter.
Many thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests