net.jinx.audio.synth.source
Class WhiteNoise2
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhiteNoise2
public WhiteNoise2(java.util.Random r,
double maxChange)
WhiteNoise2
public WhiteNoise2(double maxChange)
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