de.sciss.jcollider
Class Constant

java.lang.Object
  extended by de.sciss.jcollider.Constant
All Implemented Interfaces:
Constants, GraphElem, UGenInput

public class Constant
extends java.lang.Object
implements UGenInput, Constants

A Constant is a wrapper for a constant in a UGen graph. It implements the UGenInput interface and therefore also the GraphElem interface which describes heterogeneous elements of a UGen graph.

Version:
0.31, 08-Oct-07
Author:
Hanns Holger Rutz
See Also:
UGen.ir( float )

Field Summary
 
Fields inherited from interface de.sciss.jcollider.Constants
kAddAfter, kAddBefore, kAddReplace, kAddToHead, kAddToTail, kAudioRate, kControlRate, kDemandRate, kDoneFree, kDoneFreeAll, kDoneFreeAllPred, kDoneFreeAllSucc, kDoneFreeGroup, kDoneFreePausePred, kDoneFreePauseSucc, kDoneFreePred, kDoneFreePredGroup, kDoneFreePredGroupDeep, kDoneFreeSucc, kDoneFreeSuccGroup, kDoneFreeSuccGroupDeep, kDoneNothing, kDonePause, kDumpBoth, kDumpHex, kDumpOff, kDumpText, kHeaderAIFF, kHeaderIRCAM, kHeaderNeXT, kHeaderRaw, kHeaderWAVE, kSampleALaw, kSampleDouble, kSampleFloat, kSampleInt16, kSampleInt24, kSampleInt32, kSampleInt8, kSampleMuLaw, kScalarRate
 
Constructor Summary
Constant(float value)
           
 
Method Summary
 UGenInput[] asUGenInputs()
           
 java.lang.String dumpName()
           
 int getNumOutputs()
           
 GraphElem getOutput(int idx)
           
 java.lang.Object getRate()
          A UGen input is naturally single-channelled.
 float getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant(float value)
Method Detail

getValue

public float getValue()

getRate

public java.lang.Object getRate()
Description copied from interface: UGenInput
A UGen input is naturally single-channelled. So this returns the rate of that single channel or kScalarRate in the case of a Constant

Specified by:
getRate in interface UGenInput

dumpName

public java.lang.String dumpName()
Specified by:
dumpName in interface UGenInput

asUGenInputs

public UGenInput[] asUGenInputs()
Specified by:
asUGenInputs in interface GraphElem

getNumOutputs

public int getNumOutputs()
Specified by:
getNumOutputs in interface GraphElem

getOutput

public GraphElem getOutput(int idx)
Specified by:
getOutput in interface GraphElem