[chuck-users] Converting dB to chuck .gain
Perry R Cook
prc at CS.Princeton.EDU
Wed Mar 8 23:43:22 EST 2006
I think gain is just linear amplitude multiplication,
like 0.0 is nothing, and 1.0 is nominal amplitude,
and 0.5 is halfway between in amplitude space, thus
-3dB from 1.0.
On Wed, 8 Mar 2006, Graham Percival wrote:
> 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
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users