auditory.sampled
Class NoiseOp

java.lang.Object
  extended by auditory.sampled.AbstractBufferedSoundOp
      extended by auditory.sampled.AbstractBufferedSoundUnaryOp
          extended by auditory.sampled.NoiseOp
All Implemented Interfaces:
BufferedSoundUnaryOp

public class NoiseOp
extends AbstractBufferedSoundUnaryOp

A BufferedSoundUnaryOp that adds noise to a signal

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
NoiseOp(double max)
          Explicit Value Constructor
 
Method Summary
 void applyFilter(double[] source, double[] destination)
          Add noise to the signal
 
Methods inherited from class auditory.sampled.AbstractBufferedSoundUnaryOp
applyFilter, filter
 
Methods inherited from class auditory.sampled.AbstractBufferedSoundOp
checkArguments, createCompatibleDestinationSound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoiseOp

public NoiseOp(double max)
Explicit Value Constructor

Parameters:
max - The maximum amount of noise to add
Method Detail

applyFilter

public void applyFilter(double[] source,
                        double[] destination)
Add noise to the signal

Specified by:
applyFilter in class AbstractBufferedSoundUnaryOp
Parameters:
source - The source signal
destination - The resulting signal


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers