|
|||||||||
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.CombReverb
public class CombReverb
CombReverb as Moorers reverb. See e.g.
Field Summary | |
---|---|
protected float |
a
|
protected AllPass |
allPass
|
protected float |
allpassDelay
|
protected float[] |
combDelays
|
protected float |
dryToWet
|
protected Mixer |
endMixer
|
protected float[] |
g
|
protected LowPassComb[] |
lpCombs
|
protected Mixer |
mixer
|
protected int |
nchannels
|
protected int |
nCombs
|
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 | |
---|---|
CombReverb(int bufferSize)
Create. |
|
CombReverb(int bufferSize,
float srate,
int nCombs)
Create. |
|
CombReverb(int bufferSize,
float srate,
int nCombs,
int nchannels)
Create. |
|
CombReverb(int bufferSize,
int nchannels)
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 |
setA(float a)
Set allpass coeff. |
void |
setAllParameters()
Set all filter parameters |
void |
setDryToWet(float d)
Set dryToWet ratio |
void |
setG(float g,
int k)
Set one pole lowpass coefficient g; H(z) = 1/(1-g/z)) |
void |
setL(float del,
int k)
Set comb delay. |
void |
setM(float del)
Set allpass delay: H(z) = (z^_{m} + a)/(1 + a*z^{-m}) Make sure is not snaller than buffersize |
void |
setNChannels(int n)
|
void |
setR(float r,
int k)
Set feedback of filter k |
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 int nchannels
protected float srate
protected int nCombs
protected float[] combDelays
protected float allpassDelay
protected float a
protected float[] R
protected float[] g
protected float dryToWet
protected LowPassComb[] lpCombs
protected AllPass allPass
protected Mixer mixer
protected Mixer endMixer
Constructor Detail |
---|
public CombReverb(int bufferSize)
bufferSize
- Buffer size used for real-time rendering.public CombReverb(int bufferSize, int nchannels)
bufferSize
- Buffer size used for real-time rendering.nchannels
- 1 for monopublic CombReverb(int bufferSize, float srate, int nCombs)
bufferSize
- Buffer size used for real-time rendering.srate
- sampling rate in HznCombs
- number of comb filterspublic CombReverb(int bufferSize, float srate, int nCombs, int nchannels)
nchannels
- 1 for monobufferSize
- Buffer size used for real-time rendering.srate
- sampling rate in HznCombs
- number of comb filtersMethod Detail |
---|
public void setNChannels(int n)
protected void init()
public void setAllParameters()
public void setR(float r, int k)
r
- feedbackk
- index of comb filterpublic void setG(float g, int k)
g
- lowpass filter coefficientk
- index of comb filterpublic void setDryToWet(float d)
d
- dry to wet. 1 is dry onlypublic void setA(float a)
a
- allpass coeffpublic void setM(float del)
del
- allpass delay in secondspublic void setL(float del, int k)
del
- allpass delay in secondsk
- index of comb filterpublic java.lang.Object addSource(Source s) throws SinkIsFullException
addSource
in interface Sink
addSource
in class InOut
s
- Source to add.
SinkIsFullException
protected void computeBuffer()
computeBuffer
in class Out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |