[chuck-users] Converting dB to chuck .gain

Graham Percival gpermus at gmail.com
Wed Mar 8 23:36:34 EST 2006

What is chuck's .gain measured in?  Neither std.dbtorms() nor 
std.dbtopow() seem to work...

I have a bunch of data about a sound, (frequency, dB):
86.132812, 9.996495,
172.265625,  6.996109,
258.398438,  -0.955794,
344.531250,  -11.900859,

and I'd like to try some additive synthesis in chuck.  The first value 
(frequency) is obvious, but I'm at a loss as to what to do with the 
second value (dB).  What's the conversion factor between dB and .gain ?

- Graham

More information about the chuck-users mailing list