audioUtils Class
Methods
dB2Ratio
(
Number
-
i_dB
Converts db values in [-inf, 0] into "gain" values in [0,1] for example, 0 dB yields 1, -6 dB yields .5
Parameters:
-
i_dB
Number
Returns:
Number:
gain value 10^(dB/20)
note2Freq
(
Number
-
noteName
Converts note names (eg. Eb2, F#, A4) into frequency values
Parameters:
-
noteName
String
Returns:
Number:
frequency value