better db to linear 0-1 (especially array)
Posted: Tue May 19, 2020 8:41 pm
most methods involve using code or asm and that's not as efficient as this. I was working ona metering solution for My boardstation EQ and came up with this, so as to avoid any zero's. It's as close as you can get to -INF
First, send the signal to a nan to 0 made by trog or exonerate, on the top value of the selector, add this value in a string:
next send that signal to an array limit module made by trogluddite.
Replace the min with the same value in a string:
so next make two floats with these two values:
and
and use all of it as follows
signal--->nan to 0 (edited)--->(0.00109043*signal)--------->(0.978191+signal)--------------> (final result 0-1)
this can be useful for just about anything. You could use it for floats also instead of arrays in a similar manner.
Robert
First, send the signal to a nan to 0 made by trog or exonerate, on the top value of the selector, add this value in a string:
Code: Select all
-897.06939697265625
next send that signal to an array limit module made by trogluddite.
Replace the min with the same value in a string:
Code: Select all
-897.06939697265625
so next make two floats with these two values:
Code: Select all
0.00109043
and
Code: Select all
0.978191
and use all of it as follows
signal--->nan to 0 (edited)--->(0.00109043*signal)--------->(0.978191+signal)--------------> (final result 0-1)
this can be useful for just about anything. You could use it for floats also instead of arrays in a similar manner.
Robert