jass.generators
Class StickyControl

java.lang.Object
  extended by jass.engine.Out
      extended by jass.generators.StickyControl
All Implemented Interfaces:
Source

public class StickyControl
extends Out

Implements a sticky control. Must be attached to Mixer only. Has null buffer which Mixer detects (but no other generators)

Author:
kees

Field Summary
protected  double dt
           
 float srate
          Sampling rate in Hertz of Out.
protected  double T
           
protected  double x
           
protected  double xc
           
 
Fields inherited from class jass.engine.Out
buf, bufferSize, bufOld, lock
 
Constructor Summary
StickyControl(float srate, int bufferSize)
           
 
Method Summary
protected  void computeBuffer()
          Compute the next buffer and store in member float[] buf.
 double getT()
           
 double getX()
           
 double getXc()
           
 void setT(double T)
           
 void setX(double x)
           
 void setXc(double xc)
           
 
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

public float srate
Sampling rate in Hertz of Out.


xc

protected double xc

x

protected double x

T

protected double T

dt

protected double dt
Constructor Detail

StickyControl

public StickyControl(float srate,
                     int bufferSize)
Method Detail

getT

public double getT()

setT

public void setT(double T)

getXc

public double getXc()

setXc

public void setXc(double xc)

setX

public void setX(double x)

getX

public double getX()

computeBuffer

protected 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