General

Fader.x to dB Scaling Issue...

Started by Lewb on .

Sign in or create an account to join the conversation.

8 posts

Topic starter
I've been going through the advice given on the forums about how to deal with this issue, and I've got some nice approximations.

However, I've hit a stumbling block.

The Midi Documentation for my Roland M-400 Mixer includes a lovely table giving the exact db values for each of the 128 steps.
I'm assuming that I could just enter these as a vector map. But I'm concerned about turning the 0.000 to 1.000 accurately into the exact steps.

Can i really just use?
Fader.x*127
Thanks...
Looks like i've got some typing to do then!

Here's hoping its good! I've gotten so fed up trying to find a good and reliable wireless solution for this desk. I've tried TouchOSC, Stereokraut and MidiDesigner and nothing's had the flexibility to make it work.
That's what I'm trying to do, only it's not lining up accurately.

Faders output a value between 0 and 1, I'm trying to get them to output 0 to 127.

I know that Fader.x*127 does this, but it doesn't appear to line up in the positions it should when monitoring the sent midi commands and the faders on the target console...
Still dont understand wht you mean "output" 0 to 127.....

Because......by default x gets a range of 0 to 127 when it goes "out" of Lemur as midi.......

If we are talking visual representation inside Lemur Fader.x*127 gives you a range of 0 to 127......

But of course, volume faders are not linear....Meaning, around halfway of its position, the dB value is not the half of the whole range....And thats where the val vector I posted above comes into play....BUT you need to have many (not necessary all) values inside that vector and then instruct Lemur to convert the x range to that vector range....

try for example this

val = {-100, -80, 0, 6}

Monitor.value = val[Fader.x*3]

to see what I mean.....

Do notice that inside the brackets, we multiply Fader.x by sizeof(val) - 1

All the above are related to "presenting" dB values (and taking under consideration their non-linearity) inside Lemur.....If waht you are asking is an actual non-linear fader outputing non-linear values (which I really doubt) then you need another approach.