|
|||||||||
| 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.ModalObjectWithOneContact
jass.generators.StickyModalObjectWithOneContact
public class StickyModalObjectWithOneContact
Vibration model of object, capable of playing sound. Modal parameters are fed through a of butterworth filter so if you change them they change slowly.
| Field Summary | |
|---|---|
protected float[] |
ampR_old
|
protected Butter2LowFilter[] |
butterFiltersAmp
|
protected Butter2LowFilter[] |
butterFiltersCos
|
protected Butter2LowFilter[] |
butterFiltersR2
|
protected float |
butterLowPassFreq
|
protected boolean |
hasBeenConverged
|
protected float[] |
parQueue
|
protected float[] |
R2_old
old values of low-level parameters |
protected float[] |
twoRCosTheta_old
|
| Fields inherited from class jass.generators.ModalObjectWithOneContact |
|---|
ampR, b1, b2, b3, c_i, modalModel, p1, p2, p3, R2, rollGain, srate, tmpBuf, twoRCosTheta, yt_1, yt_2 |
| Fields inherited from class jass.engine.InOut |
|---|
sourceContainer, sourcePassivity, srcBuffers |
| Fields inherited from class jass.engine.Out |
|---|
buf, bufferSize, bufOld, lock |
| Constructor Summary | |
|---|---|
StickyModalObjectWithOneContact(float srate,
int nf,
int np,
int bufferSize)
Create and initialize, but don't set any modal parameters. |
|
StickyModalObjectWithOneContact(int bufferSize)
Constructor for derived classes to call super |
|
StickyModalObjectWithOneContact(ModalModel m,
float srate,
int bufferSize)
Create and initialize with provided modal data. |
|
| Method Summary | |
|---|---|
protected void |
allocateOldData(int nf,
int np)
Allocate old data. |
protected void |
computeModalFilterBank(float[] output,
float[] force,
int nsamples)
Apply external force[] and compute response through bank of modal filters. |
float |
getLowPassControlFilter()
Get lowpass freq through which modal parameters are fed |
void |
resetParameterFilter()
Reset parameter filter |
void |
setLowPassControlFilter(float freq)
Set lowpass freq through which modal parameters are fed |
| Methods inherited from class jass.generators.ModalObjectWithOneContact |
|---|
addSource, allocate, clearHistory, computeBuffer, computeFilter, computeLocation, computeResonCoeff, setDamping, setFrequencyScale, setGain, setLocation, setNf |
| 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 Butter2LowFilter[] butterFiltersR2
protected Butter2LowFilter[] butterFiltersAmp
protected Butter2LowFilter[] butterFiltersCos
protected float butterLowPassFreq
protected float[] parQueue
protected boolean hasBeenConverged
protected float[] R2_old
protected float[] twoRCosTheta_old
protected float[] ampR_old
| Constructor Detail |
|---|
public StickyModalObjectWithOneContact(int bufferSize)
bufferSize - Buffer size used for real-time rendering.
public StickyModalObjectWithOneContact(float srate,
int nf,
int np,
int bufferSize)
srate - sampling rate in Hertz.nf - number of modes.np - number of locations.bufferSize - Buffer size used for real-time rendering.
public StickyModalObjectWithOneContact(ModalModel m,
float srate,
int bufferSize)
m - modal model to load.srate - sampling rate in Hertz.bufferSize - Buffer size used for real-time rendering.| Method Detail |
|---|
public void resetParameterFilter()
public void setLowPassControlFilter(float freq)
freq - lowpass cutoff of butterworth filterpublic float getLowPassControlFilter()
protected void allocateOldData(int nf,
int np)
nf - number of modes.np - number of locations.
protected void computeModalFilterBank(float[] output,
float[] force,
int nsamples)
computeModalFilterBank in class ModalObjectWithOneContactoutput - user provided output buffer.force - input force.nsamples - number of samples to compute.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||