non-linear rescaling of arrays

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

non-linear rescaling of arrays

Post 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?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: non-linear rescaling of arrays

Post 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.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: non-linear rescaling of arrays

Post 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).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: non-linear rescaling of arrays

Post 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 1014 times
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Post Reply