|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.audio.core.KVolumeUtils
public class KVolumeUtils
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 |
---|
public KVolumeUtils()
Method Detail |
---|
public static double lin2log(double dLinear)
public static double log2lin(double dLogarithmic)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |