Welcome to %s forums

BrainModular Users Forum

Login Register

smooth and array

I need help on a Patch
Post Reply
ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 08 Sep 2010, 22:33

Is there anyway to smooth the values of an array?

From a set of value A to a set of value B for example....
Seb.Dub

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

Unread post by bsork » 08 Sep 2010, 22:48

Use whatever you want that generates a value X between 0 and 1, multiply array A with X and array B with (1-X), then add the outputs.
Bjørn S

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 08 Sep 2010, 23:30

any ideas how to make by script or patch something that would smooth 'over steps', mean not morph between two sets but

ie if a 16 step as first step 1 and all other 0 the smooth result would be a ramp down where step 1 is 0,8, 2 is 0,7, 3is 0,6 ect..

kind of the beavior of smooth module but instead of being related to time can be applied to a static array,
steps orders acting as time, dk if im clear. ie transform some spikes contrasted cloud array to round more sined..?
'blur' the array... a square wavform becoming a rounded triangle..
i fail a bit to visualise the approach..

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 08 Sep 2010, 23:38

Thanks bsork!

With the new vst params parameter, we can morph between two vst presets. I didn't noticed it!
Will try to make a little patch....
Seb.Dub

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

Unread post by bsork » 09 Sep 2010, 01:09

@23fx23: What you describe looks to me like something you would get by rounding the intermediate values - at least if you consider the steps to be of equal "size". If that's the case, some simple integer math will do the trick:

Assuming input and outputs values between 0 and 1: output = round(input * 100 / number_of_steps) * current_step / 100
Bjørn S

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 09 Sep 2010, 02:24

thans a lot master bsork, gonna try this.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests