de.sciss.jcollider
Class UGenChannel

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

public class UGenChannel
extends java.lang.Object
implements UGenInput

Represents one output channel of a (potentially multi-ouput) UGen.

Version:
0.31, 08-Oct-07
Author:
Hanns Holger Rutz

Constructor Summary
protected UGenChannel(UGen ugen, int channel)
          You do not directly create UGenChannels but retrieve them from a UGen by calling its getChannel method
 
Method Summary
 UGenInput[] asUGenInputs()
          Returns this as an array
 java.lang.String dumpName()
           
 int getChannel()
          Returns the index in the array of outputs of the corresponding UGen (beginning at zero).
 int getNumOutputs()
          Returns 1 naturally
 GraphElem getOutput(int idx)
          Returns this naturally
 java.lang.Object getRate()
          A UGen input is naturally single-channelled.
 UGen getUGen()
          Returns the UGen whose output this object represents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UGenChannel

protected UGenChannel(UGen ugen,
                      int channel)
You do not directly create UGenChannels but retrieve them from a UGen by calling its getChannel method

See Also:
UGen.getChannel( int )
Method Detail

getUGen

public UGen getUGen()
Returns the UGen whose output this object represents


getChannel

public int getChannel()
Returns the index in the array of outputs of the corresponding UGen (beginning at zero).


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()
Returns this as an array

Specified by:
asUGenInputs in interface GraphElem

getNumOutputs

public int getNumOutputs()
Returns 1 naturally

Specified by:
getNumOutputs in interface GraphElem

getOutput

public GraphElem getOutput(int idx)
Returns this naturally

Specified by:
getOutput in interface GraphElem