My thought was that this would normalize the 0..1 of stock parameter values to DB values for controlling a fader.
It certainly doesn't do that. Looks like 1000 is 12 db. But it also seems crazily extra-exponential...
No documentation in the API, and a search doesn't turn up anybody who seems to have used it.
Any suggestions welcome, thanks!!
EDIT: okay looked further afield and found that I can normalize with 20*log(n). That gives lovely value on readout. But I'm trying to set a send level, and they are not budging.
Anybody know what range this method expects? I guess I'll mess around. A little documention would be so helpful...
Code:
reaper.SetTrackSendUIVol( track, send_idx, vol, isend )
EDIT:
okay, they do seem to want a value between 0 and 1, but the movement is not linear....
EDIT:
looks like n*n, where (0<n<1) gives a fairly similar motion to the gui sliders themselves...
Is there better math than this?? Otherwise, I guess I'll call this good enough.