ddf.minim
Class UGenSignal

java.lang.Object
  extended by ddf.minim.UGenSignal
All Implemented Interfaces:
AudioSignal

public class UGenSignal
extends java.lang.Object
implements AudioSignal


Method Summary
 void generate(float[] mono)
          Generates a buffer of samples by ticking the wrapped UGen mono.length times.
 void generate(float[] left, float[] right)
          Generates a buffer of samples by ticking the wrapped UGen left.length times.
 UGen getUGen()
          Returns the UGen that is being wrapped by this UGenSignal.
 void setUGen(UGen ugen)
          Sets the UGen that this UGenSignal wraps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUGen

public void setUGen(UGen ugen)
Sets the UGen that this UGenSignal wraps.

Parameters:
ugen -

getUGen

public UGen getUGen()
Returns the UGen that is being wrapped by this UGenSignal.


generate

public void generate(float[] mono)
Generates a buffer of samples by ticking the wrapped UGen mono.length times.

Specified by:
generate in interface AudioSignal
Parameters:
mono - the float array to fill

generate

public void generate(float[] left,
                     float[] right)
Generates a buffer of samples by ticking the wrapped UGen left.length times.

Specified by:
generate in interface AudioSignal
Parameters:
left - the left channel
right - the right channel