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) |
void |
setValueInternal(double value)
Only for use in the audio thread when implementing UnitGenerators.
|
getName, getUnitGenerator, setName, setUnitGeneratorpublic UnitBlockPort(int numParts,
java.lang.String name,
double defaultValue)
public UnitBlockPort(java.lang.String name)
public int getNumParts()
getNumParts in class UnitPortpublic double get()
public double getValue()
public double[] getValues()
public double[] getValues(int partNum)
public double getValue(int partNum)
public double get(int partNum)
public void setValueInternal(double value)
public boolean isConnected()
public boolean isConnected(int partNum)
public void disconnectAll(int partNum)
public void disconnectAll()