ddf.minim.ugens
Class Reciprocal

java.lang.Object
  extended by ddf.minim.ugens.UGen
      extended by ddf.minim.ugens.Reciprocal

public class Reciprocal
extends UGen

A UGen which simply returns the reciprocal value of it's input.

Author:
nodog

Nested Class Summary
 
Nested classes/interfaces inherited from class ddf.minim.ugens.UGen
UGen.InputType, UGen.UGenInput
 
Field Summary
 UGen.UGenInput denominator
          denominator is the default input
 
Constructor Summary
Reciprocal()
           
Reciprocal(float fixedDenominator)
          Constructor for Reciprocal
 
Method Summary
 void setReciprocal(float fixedDenominator)
          Used to change the fixedDenominator value after instantiation
protected  void uGenerate(float[] channels)
          Generate the sampleframe
 
Methods inherited from class ddf.minim.ugens.UGen
addInput, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setSampleRate, tick, unpatch, unpatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

denominator

public UGen.UGenInput denominator
denominator is the default input

Constructor Detail

Reciprocal

public Reciprocal()

Reciprocal

public Reciprocal(float fixedDenominator)
Constructor for Reciprocal

Parameters:
fixedDenominator - the denominator value if the input is never connected
Method Detail

setReciprocal

public void setReciprocal(float fixedDenominator)
Used to change the fixedDenominator value after instantiation

Parameters:
fixedDenominator - the denominator value if the input is never connected

uGenerate

protected void uGenerate(float[] channels)
Generate the sampleframe

Specified by:
uGenerate in class UGen
Parameters:
channels - an array representing one sample frame.