Welcome to %s forums

BrainModular Users Forum

Login Register

Joystick to Step Value

I need help on a Patch
Post Reply
User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 12 May 2008, 10:33

I try to make a patch to draw the step value in the "step sequenced" module with a joystick or a touch pad with 2 controllers (X and Y).

I made one but it is limited to 16 steps max. I think i need to use "array" module to extend the steps numbers but i i don't know how ....

The X value of the "X-Y pad" module give the step number, and the Y value give the step value.

You can download this patch here

It will be easy to understand.
Image

thank you

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

Unread post by bsork » 12 May 2008, 23:31

You don't need to use another module, the step module is also an array, and you can use the set array element module connected to the "values" in- and output. That way you don't need the dispatcher, either. Connect the X value to "index" and the Y value to "value".
Bjørn S

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 13 May 2008, 10:09

OK i have been trying to do the patch with the 'set array' module like you tell. I need to connect too, the X position to the num step in the 'step module' because if i didn't i just have one step ????

But there is a new problem .... when i move the joystick the numbers of step move to 1 to 16 (of course)!!!! :( But i'd like a fixed numbers of step and draw the values with my joystick...

thank you

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

Unread post by bsork » 13 May 2008, 14:45

I probably wasn't clear enough:

XY.pos X1 -> A*B.A
A*B.out -> SetArrayVal.index
XY.pos Y1 -> SetArrayVal.value
SetArrayVal.array out -> Step.values
Step.values -> SetArrayVal.array in

Set the B value of A*B to the same as Step.num of steps (or create a fader connected to both). You don't need the Trunc, Usine will truncate any floating point down to integers where applicable anyway.
Bjørn S

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 13 May 2008, 18:16

Thank you very much it is great and clear. Of coarse i need to connect 'values out' to 'array in' !!!! i am stupid .... but i understand now.

thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests