From the original SynthMaker forum (2004–2014), with its members’ names and dates.
aliasant ·
Maybe there is a way around this but I cant find it so I need
a FloatArray Max.
I need to keep all arrays in the range -1 +1 while using a Float X Float Array to simulate a distortion in a wave display window....
The Original Float Array signal is normalized.
oddson ·
😕
There is a float array max.
There's no 'min' but you can invert the array (*-1) and use max
You can also sort the array and take the first and last values... it's a minor CPU hit if the array is not too large.
Am I missing something in your question?
aliasant ·
Hmm..
Not sure.. if your missing something...
My Array is a waveform.
1024 rows.
Quite big.
I need every row to be max +1 and min -1
Makes things clearer?
im dumb and cant find that Float Array Max. Any searchword for it?
oddson ·
Here's the array min method.
It's not too CPU intensive and probably faster than a sort.
The Max Array should show up by typing 'max' in 1.0.8.
But 'Norm' already does [-1,1] range limiting for arrays so you don't need any of these tricks.
aliasant ·
Great Thanx ""
The norm is needed because I add up several osc Float Arrays -> Array norm->Array multiply with float ( to simulate the distortion for the Display) then at the last stage I need this max thing just before the wavedisplay.
Edit:Copied Oddsons Float Array Min into my scheme
but hey... I dont think this can help me. :/
The Sat value goes from 1 which is untouched to 10 which is
full Sat. As seen on the display, the yellow goes outside
the display. This is why I want the Min Max FloatArray thing.
To keep the waveform inside the display.
Oops. This is not NOT compressed using photoshop. lol!!
stefan ·
What oddson meant by "But 'Norm' already does [-1,1] range limiting for arrays so you don't need any of these tricks." is that you can use the 'Norm' component that normalizes the array instead of building your own array normalizer 🙂
aliasant ·
Morning Stef.
It isnt a normaliser I need. it is a Limiter.
Array limiter.
If I place the Norm after the Multi the image in the display wont change when I adjust the Sat. And I want it to change. To look Sturated. Just not outside +1 -1 .
Or am I misunderstanding you both as usuall ? 🙁
Im terrible understanding written instructions. Images tell me more the a shitload of words 😉
oddson ·
Why bother to limit the values... just let them fall outside the range and not be displayed? 😕
But if you really want to I guess you have to replace each one outside the range with the min/max values. I can't think of anything except the loop function off hand and that would definitely slow things down.
aliasant ·
Well 🙂
This is why I Asked for a Float Array Max and Min.
That would have done it for me.
TomC ·
aliasant wrote: Well 🙂
This is why I Asked for a Float Array Max and Min.
That would have done it for me.
Add the schematics below at the place where you fill the array:
Tom
Wrote something here? To have a post removed or your name hidden, write to [email protected].