public class UnitBlockPort extends UnitPort
Constructor and Description |
---|
UnitBlockPort(int numParts,
java.lang.String name,
double defaultValue) |
UnitBlockPort(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
disconnectAll() |
void |
disconnectAll(int partNum) |
double |
get()
Convenience call to get(0).
|
double |
get(int partNum) |
int |
getNumParts() |
double |
getValue() |
double |
getValue(int partNum)
Get the immediate current value of the port.
|
double[] |
getValues()
This is used inside UnitGenerators to get the current values for a port.
|
double[] |
getValues(int partNum)
Only for use in the audio thread when implementing UnitGenerators.
|
boolean |
isConnected() |
boolean |
isConnected(int partNum) |
protected void |
makeParts(int numParts,
double defaultValue) |
void |
setValueInternal(double value)
Only for use in the audio thread when implementing UnitGenerators.
|
protected void |
setValueInternal(int partNum,
double value)
Only for use in the audio thread when implementing UnitGenerators.
|
getName, getUnitGenerator, queueCommand, scheduleCommand, setName, setUnitGenerator
public UnitBlockPort(int numParts, java.lang.String name, double defaultValue)
public UnitBlockPort(java.lang.String name)
protected void makeParts(int numParts, double defaultValue)
public int getNumParts()
getNumParts
in class UnitPort
public double get()
public double getValue()
public double[] getValues()
public double[] getValues(int partNum)
public double getValue(int partNum)
public double get(int partNum)
protected void setValueInternal(int partNum, double value)
public void setValueInternal(double value)
public boolean isConnected()
public boolean isConnected(int partNum)
public void disconnectAll(int partNum)
public void disconnectAll()