|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jass.engine.Out jass.engine.InOut jass.patches.LowPassComb
public class LowPassComb
Delay line with a one pole low-pass. Used in Moorers reverb. See e.g.
Field Summary | |
---|---|
protected float |
del
|
protected Delay |
delay
|
protected float |
g
|
protected OnePoleLowPass |
lowpass
|
protected Mixer |
mixer
|
protected float |
R
|
protected float |
srate
|
Fields inherited from class jass.engine.InOut |
---|
sourceContainer, sourcePassivity, srcBuffers |
Fields inherited from class jass.engine.Out |
---|
buf, bufferSize, bufOld, lock |
Constructor Summary | |
---|---|
LowPassComb(int bufferSize)
Create. |
|
LowPassComb(int bufferSize,
float srate)
Create. |
Method Summary | |
---|---|
java.lang.Object |
addSource(Source s)
Add source to Sink. |
protected void |
computeBuffer()
Compute the next buffer and store in member float[] buf. |
protected void |
init()
Init and allocate. |
void |
setG(float g)
Set low-pass parameter g. |
void |
setL(float del)
Set delay del. |
void |
setR(float R)
Set feedback R. |
Methods inherited from class jass.engine.InOut |
---|
addSource, getBuffer, getSources, removeSource, resetTime |
Methods inherited from class jass.engine.Out |
---|
clearBuffer, copyToOld, getBuffer, getBufferSize, getTime, peekAtBuffer, setBufferSize, setTime, setTimeAndNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float srate
protected float R
protected float g
protected float del
protected Mixer mixer
protected Delay delay
protected OnePoleLowPass lowpass
Constructor Detail |
---|
public LowPassComb(int bufferSize)
bufferSize
- Buffer size used for real-time rendering.public LowPassComb(int bufferSize, float srate)
bufferSize
- Buffer size used for real-time rendering.srate
- sampling rate in HzMethod Detail |
---|
protected void init()
public java.lang.Object addSource(Source s) throws SinkIsFullException
addSource
in interface Sink
addSource
in class InOut
s
- Source to add.
SinkIsFullException
public void setL(float del) throws java.lang.IllegalArgumentException
del
- delay in seconds
java.lang.IllegalArgumentException
public void setR(float R)
R
- feedbackpublic void setG(float g)
g
- low-pass parameter g.protected void computeBuffer()
computeBuffer
in class Out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |