|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jsyn.SynthPort com.softsynth.jsyn.SynthScalarPort com.softsynth.jsyn.SynthVariable com.softsynth.jsyn.SynthInput
public class SynthInput
SynthInput is an input port for a SynthUnit. It can be connected to a SynthOutput or set() directly.
Method Summary | |
---|---|
void |
connect(int outIndex,
SynthInput inPort,
int inIndex)
This method is illegal for SynthInput but is legal for a subclass SynthDistributor. |
void |
connect(int inIndex,
SynthOutput outPort,
int outIndex)
Connect output port of another instrument to this input port. |
void |
connect(SynthInput inPort)
|
void |
connect(SynthOutput outPort)
|
void |
disconnect()
|
void |
disconnect(int index)
Disconnects the connections made to this port. |
MultiplyUnit |
multiply(SynthOutput outPortX,
SynthOutput outPortY)
Convenient way to create a MultiplyUnit and connect it up. |
Methods inherited from class com.softsynth.jsyn.SynthVariable |
---|
get, getCurrent, getCurrent, getMax, getMin, set, set, set, set, setAt, setAt, setMax, setMin, setSignalType, setup |
Methods inherited from class com.softsynth.jsyn.SynthScalarPort |
---|
get |
Methods inherited from class com.softsynth.jsyn.SynthPort |
---|
getAlias, getName, getNumParts, getSignalType, getSignalType, getSound, setAlias, setSignalType, setSignalType, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void connect(int inIndex, SynthOutput outPort, int outIndex) throws SynthException
SynthException
- If port name is not recognized, or index out of range.public void connect(SynthOutput outPort) throws SynthException
SynthException
public void connect(int outIndex, SynthInput inPort, int inIndex) throws SynthException
SynthException
- If used to connect two SynthInputs, or if port is not invalid, or index out of range.public void connect(SynthInput inPort) throws SynthException
SynthException
public void disconnect(int index) throws SynthException
SynthException
- If port name is not recognized, or index out of range.public void disconnect() throws SynthException
SynthException
public MultiplyUnit multiply(SynthOutput outPortX, SynthOutput outPortY) throws SynthException
Z.input.multiply( X.output, Y.output );Make sure you save a reference to the MultiplyUnit or it may get garbage collected.
SynthException
- If MultiplyUnit cannot be created, or ports invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |