Class LoudnessNormalization
- java.lang.Object
-
- com.tagtraum.audiokern.replaygain.LoudnessNormalization
-
- Direct Known Subclasses:
EBU_R128
,ReplayGainAlgorithm
public abstract class LoudnessNormalization extends Object
Loudness normalization algorithm.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description LoudnessNormalization()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
buildSamplePeakPipeline(InterleavedChannelSplit split, int channels)
protected void
buildTruePeakPipeline(InterleavedChannelSplit split, int channels)
abstract SignalProcessor<AudioBuffer,AudioBuffer>
createPipeline()
abstract float
getDefaultReferenceLevel()
String
getLabel()
boolean
isMeasureLoudness()
boolean
isMeasureLoudnessRange()
boolean
isMeasureSamplePeak()
boolean
isMeasureTruePeak()
void
setMeasureLoudness(boolean computeLoudness)
void
setMeasureLoudnessRange(boolean computeLoudnessRange)
void
setMeasureSamplePeak(boolean measureSamplePeak)
void
setMeasureTruePeak(boolean measureTruePeak)
abstract Loudness
toLoudness(Map<Object,Object> results)
abstract Float
toLoudnessRange(Map<Object,Object> results)
abstract ReplayGain
toReplayGain(Loudness loudness, float referenceLevel, Number peak, int sampleSizeInBits)
abstract ReplayGain
toReplayGain(Map<Object,Object> results, float referenceLevel, int sampleSizeInBits)
Convert results toReplayGain
with custom reference level.abstract ReplayGain
toReplayGain(Map<Object,Object> results, int sampleSizeInBits)
-
-
-
Field Detail
-
LOUDNESS
public static final String LOUDNESS
- See Also:
- Constant Field Values
-
PEAK
public static final String PEAK
- See Also:
- Constant Field Values
-
TRUE_PEAK
public static final String TRUE_PEAK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
public String getLabel()
-
isMeasureLoudness
public boolean isMeasureLoudness()
-
setMeasureLoudness
public void setMeasureLoudness(boolean computeLoudness)
-
isMeasureLoudnessRange
public boolean isMeasureLoudnessRange()
-
setMeasureLoudnessRange
public void setMeasureLoudnessRange(boolean computeLoudnessRange)
-
isMeasureSamplePeak
public boolean isMeasureSamplePeak()
-
setMeasureSamplePeak
public void setMeasureSamplePeak(boolean measureSamplePeak)
-
isMeasureTruePeak
public boolean isMeasureTruePeak()
-
setMeasureTruePeak
public void setMeasureTruePeak(boolean measureTruePeak)
-
getDefaultReferenceLevel
public abstract float getDefaultReferenceLevel()
-
createPipeline
public abstract SignalProcessor<AudioBuffer,AudioBuffer> createPipeline()
-
toReplayGain
public abstract ReplayGain toReplayGain(Map<Object,Object> results, int sampleSizeInBits)
-
toReplayGain
public abstract ReplayGain toReplayGain(Map<Object,Object> results, float referenceLevel, int sampleSizeInBits)
Convert results toReplayGain
with custom reference level.- Parameters:
results
- pump resultsreferenceLevel
- reference levelsampleSizeInBits
- sampleSizeInBits- Returns:
- replay gain
-
toReplayGain
public abstract ReplayGain toReplayGain(Loudness loudness, float referenceLevel, Number peak, int sampleSizeInBits)
-
buildSamplePeakPipeline
protected void buildSamplePeakPipeline(InterleavedChannelSplit split, int channels)
-
buildTruePeakPipeline
protected void buildTruePeakPipeline(InterleavedChannelSplit split, int channels)
-
-