jass.generators
Class GlottalModel

java.lang.Object
  extended by jass.engine.Out
      extended by jass.generators.GlottalModel
All Implemented Interfaces:
Source
Direct Known Subclasses:
TwoMassModel

public abstract class GlottalModel
extends Out

Output a volume velocity according to a dynamical glottal model.

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
protected  double srate
           
protected  double ug
           
protected  double ug2
           
 
Fields inherited from class jass.engine.Out
buf, bufferSize, bufOld, lock
 
Constructor Summary
GlottalModel(int bufferSize, double srate)
           
 
Method Summary
abstract  void advance(double lambda)
          Advance state by one sample.
protected abstract  void computeBuffer()
          Compute the next buffer and store in member float[] buf.
 double getUg()
          Get glottal volume velocity
 
Methods inherited from class jass.engine.Out
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srate

protected double srate

ug

protected double ug

ug2

protected double ug2
Constructor Detail

GlottalModel

public GlottalModel(int bufferSize,
                    double srate)
Method Detail

getUg

public double getUg()
Get glottal volume velocity

Parameters:
k - index of pan
Returns:
glottal volume velocity

advance

public abstract void advance(double lambda)
Advance state by one sample. Lambda interpolation parameter


computeBuffer

protected abstract void computeBuffer()
Description copied from class: Out
Compute the next buffer and store in member float[] buf. This is the core processing method which will be implemented for each generator.

Specified by:
computeBuffer in class Out