Welcome to %s forums

BrainModular Users Forum

Login Register

reseting or initializing modules with chosen values

I need help on a Patch
Post Reply
Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 03 Jan 2019, 20:34

Hello
I'm using some XY pad modules in a patch and I'd like them to return to certain values on opening my workspace.
I was trying to do it with [Usine Patch Settings] sending a trigger to the reset patch inlet with [patch on initialization]
but the value of the X1 parameter (resetted) is 0.2172 when I expected it to be 0.5. (median value). Am I doing something wrong?
And what would be the solution if I want another value on reset?
By the way I'm also looking for a simple way to trigger a value. In Max you just "bang" a value, what about in Usine?
Is there a kind of [value] module?
Sorry for those very basics questions...

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 03 Jan 2019, 21:53

simple way to trigger a value : module variable (var)
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 03 Jan 2019, 22:34

Thank you. So I can trigger (Var) with (On Init).
Any idea about why I don't get median values on reseting the patch?

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 03 Jan 2019, 23:17

Hello,

Most modules in Usine have a reset value, you can edit this value.
Unfortunately, on "XY Pad" module, this value is not editable. It could be a good suggestion, with an array input.
You can use a "pass" module, linked to x1, y1, x2, y2 ...., with a 0.5 value in input. You link a "on activation" module on pass input.
Each time you activate the patch, the x and y value will be reseted to median value.

Sylvain

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 04 Jan 2019, 01:58

can also do 'wireless' bangs usine IML vi 'send usine internal message' module,
ie rename target module alt-clicking on it, 'MYXY' , then on the message module:

SET_TARGET_PATCH SENDER_PATCH
SET_VALUE 'MYXY' X-1 0.5
SET_VALUE 'MYXY' Y-1 0.5

for ex will reset x and y to 0,5. can add many vars keeping the patch clean , and connect what you want to send message button inlet, like on init.

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 04 Jan 2019, 15:05

Sylvain, 23fx23, thank you very much for your help!
all the best

Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests