de.sciss.jcollider
Class GraphElemArray

java.lang.Object
  extended by de.sciss.jcollider.GraphElemArray
All Implemented Interfaces:
GraphElem

public class GraphElemArray
extends Object
implements GraphElem

This interface does the dirty job of putting all kinds of different elements under one brand which can be used in UGen graph generation. The GraphElemArray is used in automatic multichannel expansion.

Version:
0.2, 11-Sep-05 (some countries are still at war)
Author:
Hanns Holger Rutz
See Also:
UGen.array( GraphElem, GraphElem )

Constructor Summary
GraphElemArray(GraphElem[] elements)
           
 
Method Summary
static GraphElemArray asArray(GraphElem g)
           
 UGenInput[] asUGenInputs()
           
static UGenInput[] flatten(UGenInput[][] ins)
           
 GraphElem getElement(int idx)
           
 int getNumElements()
           
 int getNumOutputs()
           
 GraphElem getOutput(int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphElemArray

public GraphElemArray(GraphElem[] elements)
Method Detail

asArray

public static GraphElemArray asArray(GraphElem g)

getElement

public GraphElem getElement(int idx)

getNumElements

public int getNumElements()

getNumOutputs

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

getOutput

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

asUGenInputs

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

flatten

public static UGenInput[] flatten(UGenInput[][] ins)