Page 1 of 1

non-linear rescaling of arrays

Posted: Sun Apr 28, 2013 2:31 pm
by tester
Let say that I have array in range (0-1). I'd like to push it through nonlinear rescaling routines. Anyone experimented with it? Trog - I'm looking at your tools, but I see curves only for floats; did you experimented with that for arrays too?

Re: non-linear rescaling of arrays

Posted: Sun Apr 28, 2013 2:48 pm
by Perfect Human Interface
I'd think you'd just use the loop component to draw each value of the array consecutively and apply math to it.

Re: non-linear rescaling of arrays

Posted: Sun Apr 28, 2013 2:49 pm
by tester
I'm not sure how it should work. Array is changing continuously (tick25). But I think I have another idea to test (individual float outputs).

Re: non-linear rescaling of arrays

Posted: Sun Apr 28, 2013 2:52 pm
by trogluddite
Yes, Human Interface is right, there's no 'bulk transform' component - you have to treat each element in turn.

Using the regular 'Integer Loop', that means LOTS of triggers, so this is something that Ruby is much better suited for.
Here's a "skeleton" Ruby block that you could use as a template...
Array Iteration Ruby.fsm
(699 Bytes) Downloaded 1013 times