Welcome to %s forums

BrainModular Users Forum

Login Register

efficient solution for bias control of incoming value?

I need help on a Patch
Post Reply
User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 21 Nov 2018, 17:27

Let's say I have fader and I might want to route LFO to it by Matrix cell value. Normally with Pass if changed module LFO would just take over the fader value to whatever LFO is outputing scaled by Matrix cell value. But I would rather like to have a sub-fader (maybe range fader fits better here?) outputing the final value, while main fader would be still adjustable and act as Bias adjuster. Therefore I need any incoming input to scale around main fader as 'center' of modulations and when Matrix cell value goes to 0, then main fader would act like normal fader.

Can't quite wrap my head around how to do it efficiently, and preferably without wiring cells out from matrix to check the values and scale many faders like that from there. That would be quite a wiring mess. But is it avoidable?
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 21 Nov 2018, 21:46

not sur fully understood, but what i would do personally is use a normalized fader going from 0 to 1.
the 'modulation' out of lfo would go from -1 to 1, sclaled (multiplied) by matrix.
the "final" out is sum of both, clamped01, eventually rescaled to a target range.

so ie if mx is 0 its only the fader.
if mx is at 0.25 , mod wil alternate from -0.25 +0.25 around the fader value.

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 21 Nov 2018, 22:49

yeah, didn't think about making lfo -1 to 1, might do the trick. but I would also have to rescale any other modulation source.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 21 Nov 2018, 23:02

the main problem is, I can't figure out how to filter out negative values. clipping option in Change Scale doesn't do it.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 22 Nov 2018, 00:11

for clamping can use a second fader, or min/max(A,B)) math modules.

ie max(0, value) clamp negative values
min(1,value) will clamp anything above 1)

or if wanna use a single module can use array_clip module, wich let man set both min and max.

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 22 Nov 2018, 00:33

Yes, that's it! Thanks!
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

Post Reply

Who is online

Users browsing this forum: No registered users and 54 guests