Class EBU_R128
- java.lang.Object
-
- com.tagtraum.audiokern.replaygain.LoudnessNormalization
-
- com.tagtraum.audiokern.replaygain.EBU_R128
-
public class EBU_R128 extends LoudnessNormalization
Implementation of the EBU R 128 (see here) standard for integrated loudness and loudness range.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from class com.tagtraum.audiokern.replaygain.LoudnessNormalization
LOUDNESS, PEAK, TRUE_PEAK
-
-
Constructor Summary
Constructors Constructor Description EBU_R128()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignalProcessor<AudioBuffer,AudioBuffer>
createPipeline()
static double
energyToLoudness(double energy)
static float
energyToLoudness(float energy)
static float[]
energyToLoudness(float[] energies)
float
getDefaultReferenceLevel()
static float
getGatedLoudness(float[] energies)
String
getLabel()
static String
getLoudnessId()
static float
getLoudnessRange(float[] energies)
static String
getLoudnessRangeId()
static double
loudnessToEnergy(double loudness)
static float
loudnessToEnergy(float loudness)
static float[]
loudnessToEnergy(float[] loudness)
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
-
getLoudnessId
public static String getLoudnessId()
-
getLoudnessRangeId
public static String getLoudnessRangeId()
-
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
-
getGatedLoudness
public static float getGatedLoudness(float[] energies)
-
getLoudnessRange
public static float getLoudnessRange(float[] energies)
-
loudnessToEnergy
public static double loudnessToEnergy(double loudness)
-
loudnessToEnergy
public static float loudnessToEnergy(float loudness)
-
energyToLoudness
public static double energyToLoudness(double energy)
-
energyToLoudness
public static float energyToLoudness(float energy)
-
energyToLoudness
public static float[] energyToLoudness(float[] energies)
-
loudnessToEnergy
public static float[] loudnessToEnergy(float[] loudness)
-
-