as.clynx.audio.norm
Class LinAmplNormalizer

java.lang.Object
  extended by as.clynx.audio.norm.LinAmplNormalizer
All Implemented Interfaces:
INormalizer, java.lang.Cloneable

public class LinAmplNormalizer
extends java.lang.Object
implements INormalizer

The class LinAmplNormalizer.java normalizes the sample according the minimal and maximal amplitude over all passed audiofiles.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Constructor Summary
LinAmplNormalizer()
           
 
Method Summary
 INormalizer clone()
          returns a clone of the current instance.
 int normalizeSample(int sample, AudioFile file, IAudioFileCollection list)
          returns the normalized samplevalue
 void setAudioFormat(javax.sound.sampled.AudioFormat format)
          sets the audioformat
 void update(int id, java.lang.Object value)
          updates the modifyable parameters of the normalizer instance in runtime.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinAmplNormalizer

public LinAmplNormalizer()
Method Detail

normalizeSample

public int normalizeSample(int sample,
                           AudioFile file,
                           IAudioFileCollection list)
Description copied from interface: INormalizer
returns the normalized samplevalue

Specified by:
normalizeSample in interface INormalizer
Returns:
the normalized samplevalue

setAudioFormat

public void setAudioFormat(javax.sound.sampled.AudioFormat format)
Description copied from interface: INormalizer
sets the audioformat

Specified by:
setAudioFormat in interface INormalizer

clone

public INormalizer clone()
Description copied from interface: INormalizer
returns a clone of the current instance.

Specified by:
clone in interface INormalizer
Overrides:
clone in class java.lang.Object
Returns:
a clone of the current instance.

update

public void update(int id,
                   java.lang.Object value)
Description copied from interface: INormalizer
updates the modifyable parameters of the normalizer instance in runtime.

Specified by:
update in interface INormalizer