Class ReplayGainAlgorithm
- java.lang.Object
-
- com.tagtraum.audiokern.replaygain.LoudnessNormalization
-
- com.tagtraum.audiokern.replaygain.ReplayGainAlgorithm
-
public class ReplayGainAlgorithm extends LoudnessNormalization
ReplayGain algorithm.
Contrary to the original proposal, this implementation uses a reference level of 89dB SPL. This in accordance with everyone else.
- Author:
- Hendrik Schreiber
- See Also:
- Replay Gain
-
-
Field Summary
-
Fields inherited from class com.tagtraum.audiokern.replaygain.LoudnessNormalization
LOUDNESS, PEAK, TRUE_PEAK
-
-
Constructor Summary
Constructors Constructor Description ReplayGainAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignalProcessor<AudioBuffer,AudioBuffer>
createPipeline()
float
getDefaultReferenceLevel()
String
getLabel()
Loudness
toLoudness(Map<Object,Object> results)
Float
toLoudnessRange(Map<Object,Object> results)
ReplayGain
toReplayGain(Loudness loudness, float referenceLevel, Number peak, int sampleSizeInBits)
ReplayGain
toReplayGain(Map<Object,Object> results, float referenceLevel, int sampleSizeInBits)
Convert results toReplayGain
with custom reference level.ReplayGain
toReplayGain(Map<Object,Object> results, int sampleSizeInBits)
-
Methods inherited from class com.tagtraum.audiokern.replaygain.LoudnessNormalization
buildSamplePeakPipeline, buildTruePeakPipeline, isMeasureLoudness, isMeasureLoudnessRange, isMeasureSamplePeak, isMeasureTruePeak, setMeasureLoudness, setMeasureLoudnessRange, setMeasureSamplePeak, setMeasureTruePeak
-
-
-
-
Method Detail
-
getLabel
public String getLabel()
- Overrides:
getLabel
in classLoudnessNormalization
-
getDefaultReferenceLevel
public float getDefaultReferenceLevel()
- Specified by:
getDefaultReferenceLevel
in classLoudnessNormalization
-
createPipeline
public SignalProcessor<AudioBuffer,AudioBuffer> createPipeline()
- Specified by:
createPipeline
in classLoudnessNormalization
-
toLoudness
public Loudness toLoudness(Map<Object,Object> results)
- Specified by:
toLoudness
in classLoudnessNormalization
-
toLoudnessRange
public Float toLoudnessRange(Map<Object,Object> results)
- Specified by:
toLoudnessRange
in classLoudnessNormalization
-
toReplayGain
public ReplayGain toReplayGain(Map<Object,Object> results, int sampleSizeInBits)
- Specified by:
toReplayGain
in classLoudnessNormalization
-
toReplayGain
public ReplayGain toReplayGain(Map<Object,Object> results, float referenceLevel, int sampleSizeInBits)
Description copied from class:LoudnessNormalization
Convert results toReplayGain
with custom reference level.- Specified by:
toReplayGain
in classLoudnessNormalization
- Parameters:
results
- pump resultsreferenceLevel
- reference levelsampleSizeInBits
- sampleSizeInBits- Returns:
- replay gain
-
toReplayGain
public ReplayGain toReplayGain(Loudness loudness, float referenceLevel, Number peak, int sampleSizeInBits)
- Specified by:
toReplayGain
in classLoudnessNormalization
-
-