net.jinx.audio.synth.source
Class WhiteNoise2

java.lang.Object
  extended by net.jinx.audio.synth.source.WhiteNoise2
All Implemented Interfaces:
SampleProcessor

public class WhiteNoise2
extends java.lang.Object
implements SampleProcessor

SampleProcessor source that dumps semi-random data into sound buffers. This is different from WhiteNoise in that the data is random, but constrained to only a certain amount of change in any given direction per frame.


Constructor Summary
WhiteNoise2(double maxChange)
           
WhiteNoise2(java.util.Random r, double maxChange)
           
 
Method Summary
 SampleFormat getFormat()
           
 boolean isSource()
           
protected  double next()
           
 void process(java.nio.DoubleBuffer sample)
           
 boolean setFormat(SampleFormat fmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteNoise2

public WhiteNoise2(java.util.Random r,
                   double maxChange)

WhiteNoise2

public WhiteNoise2(double maxChange)
Method Detail

setFormat

public boolean setFormat(SampleFormat fmt)
Specified by:
setFormat in interface SampleProcessor

getFormat

public SampleFormat getFormat()
Specified by:
getFormat in interface SampleProcessor

process

public void process(java.nio.DoubleBuffer sample)
Specified by:
process in interface SampleProcessor

next

protected double next()

isSource

public boolean isSource()
Specified by:
isSource in interface SampleProcessor