com.softsynth.math
Class AudioMath

java.lang.Object
  extended by com.softsynth.math.AudioMath

public class AudioMath
extends java.lang.Object

Miscellaneous math functions useful in Audio

Author:
(C) 1998 Phil Burk, All Rights Reserved

Constructor Summary
AudioMath()
           
 
Method Summary
static double amplitudeToDecibels(double amplitude)
          Convert amplitude to decibels.
static double decibelsToAmplitude(double decibels)
          Convert decibels to amplitude.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioMath

public AudioMath()
Method Detail

amplitudeToDecibels

public static double amplitudeToDecibels(double amplitude)
Convert amplitude to decibels. 1.0 is zero dB. 0.5 is -6.02 dB.


decibelsToAmplitude

public static double decibelsToAmplitude(double decibels)
Convert decibels to amplitude. Zero dB is 1.0 and -6.02 dB is 0.5.