de.sciss.jcollider
Class GraphElemArray
java.lang.Object
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 )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphElemArray
public GraphElemArray(GraphElem[] elements)
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)