Page 1 of 1

Help with 'pseudo' Log with 6dB Headroom

Posted: Sat May 23, 2015 2:53 pm
by Walter Sommerfeld
Hi,

i'm again a little lost with my little mathematician knowledge here...

I need a Midi output value (CC 0-127) that mimics the behaviour in this RTF doc:

Thanks in advance!
Walter

P.S.: All values have an added 0.01 shunt (0.5 > 0.51 = -6dB, CC 64)...
i think i used this trick to compensate the rounding errors: float > Integer

Re: Help with 'pseudo' Log with 6dB Headroom

Posted: Sat May 23, 2015 4:55 pm
by MyCo
Just a quick guess...

Re: Help with 'pseudo' Log with 6dB Headroom

Posted: Sat May 23, 2015 5:29 pm
by martinvicanek
That looks more like a square mapping rather than (pseudo)log to me. Which is reasonable according to this reference. :geek:
Here is my attempt at an implementation.

Re: Help with 'pseudo' Log with 6dB Headroom

Posted: Sat May 23, 2015 8:45 pm
by Walter Sommerfeld
Thanks Guru's,

like i mentioned before - had no clue what's behind it...

Never would expect a Midi Velocity behind this curve martin... :o

Added a round float with 1 decimal => works fine here :)

Now it's time 4 a scotch...

Cheers,
Walter