|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjass.engine.Out
jass.engine.InOut
jass.generators.ModalQuencher
public class ModalQuencher
UG that maintains a list of sources and QuenchableModalObjectWithOneContact's and estimates excitations and turns off inaudible modes according to a masking analysis.
| Field Summary | |
|---|---|
protected float |
av
Masking curve offset (how high about masker) |
protected float |
dbLevelLoudestMode
This is the level in dB SPL of loudest mode (as hear by listener) Should be estimated with a mike, if possible. |
protected float |
maximumExdBThatOccurred
maximum excitation occurred |
protected QuenchableModalObjectWithOneContact[] |
mobs
Registered QuenchableModalObjectWithOneContact's |
protected jass.generators.ModeData[] |
modeData
Modal data array |
protected int |
nFramesToSkip
How many frames to skip before quenching again |
protected int |
nKilledModes
For monitoring purpose |
protected int |
nTotalModes
|
protected float[] |
sourceExcitations
Estimated excitations of inputs to the above QuenchableModalObjectWithOneContact |
float |
srate
Sampling rate in Hertz. |
| Fields inherited from class jass.engine.InOut |
|---|
sourceContainer, sourcePassivity, srcBuffers |
| Fields inherited from class jass.engine.Out |
|---|
buf, bufferSize, bufOld, lock |
| Constructor Summary | |
|---|---|
ModalQuencher(int bufferSize,
int nFramesToSkip)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addModalObject(QuenchableModalObjectWithOneContact s)
Add QuenchableModalObjectWithOneContact to Sink. |
protected void |
computeBuffer()
When this is called, all sources have already been queried (available through getSources(). |
protected void |
doQuenching()
Sort estimate excitations, sort ModeData[], quench |
protected void |
estimateExcitations()
Estimate exitations. |
QuenchableModalObjectWithOneContact[] |
getModalObjects()
Get array of QuenchableModalObjectWithOneContact's |
int |
getNKilledModes()
|
int |
getTotalModes()
|
void |
init()
To be called after all sources and mobs have been added |
protected void |
quench()
|
void |
resetLevel()
Reset level |
void |
setAv(float val)
Set masking curve height. |
void |
setDbLevelLoudestMode(float val)
Set level in dB SPL at observer of loudest mode. |
void |
setFramesToSkip(int n)
How many frames (buffers) to skip before recomputing modal quenching |
protected void |
sortModeData()
|
| Methods inherited from class jass.engine.InOut |
|---|
addSource, 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 dbLevelLoudestMode
protected float av
protected float maximumExdBThatOccurred
public float srate
protected QuenchableModalObjectWithOneContact[] mobs
protected float[] sourceExcitations
protected jass.generators.ModeData[] modeData
protected int nFramesToSkip
protected int nKilledModes
protected int nTotalModes
| Constructor Detail |
|---|
public ModalQuencher(int bufferSize,
int nFramesToSkip)
bufferSize - internal buffersizenFramesToSkip - how many frames to skip before quenching again| Method Detail |
|---|
public int getNKilledModes()
public int getTotalModes()
public void init()
public void setAv(float val)
val - offset in dB (20 is safe, 1 is agressive)public void setDbLevelLoudestMode(float val)
val - loudest mode at loudest moment in dBpublic void resetLevel()
public void setFramesToSkip(int n)
n - nFramesToSkipprotected void computeBuffer()
computeBuffer in class Outprotected void doQuenching()
protected void estimateExcitations()
protected void quench()
public void addModalObject(QuenchableModalObjectWithOneContact s)
s - QuenchableModalObjectWithOneContact to add.public QuenchableModalObjectWithOneContact[] getModalObjects()
protected void sortModeData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||