|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthCircuit
public class SynthCircuit
SynthCircuits contain SynthUnits connected together to make a complex circuit or patch. The ports of the internal units can be exported with names and used by set() or connect().
Synth,
SynthChannelData| Field Summary | |
|---|---|
SynthOutput |
output
Output of circuit. |
| Constructor Summary | |
|---|---|
SynthCircuit()
Defaults to 8 initial sounds. |
|
SynthCircuit(int numSounds)
|
|
SynthCircuit(SynthContext synthContext)
|
|
SynthCircuit(SynthContext synthContext,
int numSounds)
|
|
| Method Summary | |
|---|---|
void |
add(SynthSound sound)
Add this sound to internal vector of subUnits. |
void |
compile()
Collect together the sounds added using add() into a circuit. |
void |
delete()
Delete all subunits and then delete the circuit. |
int |
getPeer()
|
static SynthCircuit |
loadByName(java.lang.String name)
Load a SynthCircuit by its name string. |
| Methods inherited from class com.softsynth.jsyn.SynthSound |
|---|
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop |
| Methods inherited from class com.softsynth.jsyn.SynthObject |
|---|
deleteAll, enableDeletionByGarbageCollector, enableTracking, getSynthContext, isTrackingEnabled, toString, track |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public SynthOutput output
| Constructor Detail |
|---|
public SynthCircuit(SynthContext synthContext,
int numSounds)
throws SynthException
numSounds - maximum number of sounds allowed in circuit
SynthException - If memory allocation fails.
public SynthCircuit(SynthContext synthContext)
throws SynthException
SynthException
public SynthCircuit(int numSounds)
throws SynthException
SynthException
public SynthCircuit()
throws SynthException
SynthException - If memory allocation fails.| Method Detail |
|---|
public void add(SynthSound sound)
throws SynthException
SynthException - If circuit already compiled by compile() or start() method.
public int getPeer()
throws SynthException
getPeer in class SynthObjectSynthException - If compilation of circuit fails.
public void compile()
throws SynthException
SynthException - If any subunits are invalid.
public void delete()
throws SynthException
delete in class SynthObjectSynthException - If token already deleted.public static SynthCircuit loadByName(java.lang.String name)
Note that because Class.newInstance() does not take any parameters, that circuits can only be loaded using the default Synth.getSharedContext().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||