uk.org.toot.audio.core
Class KVolumeUtils

java.lang.Object
  extended by uk.org.toot.audio.core.KVolumeUtils

public class KVolumeUtils
extends java.lang.Object

KVolumeUtils provides conversion methods between linear and logarithmic (dB). It delegates to Tritonus' VolumeUtils after applying a correction such that 0dB is then KdB below fullscale. K is fixed at 20dB below fullscale for this implementation which perhaps needs refactoring so that different K's can be used in different circumstances.


Constructor Summary
KVolumeUtils()
           
 
Method Summary
static double lin2log(double dLinear)
           
static double log2lin(double dLogarithmic)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KVolumeUtils

public KVolumeUtils()
Method Detail

lin2log

public static double lin2log(double dLinear)

log2lin

public static double log2lin(double dLogarithmic)


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.