|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.teicrete.mta.synthesizer.SynthParameter
public class SynthParameter
The default parameter class
| Field Summary | |
|---|---|
static int |
EXPONENTIAL_REPRESENTATION
|
static int |
LINEAR_REPRESENTATION
|
| Constructor Summary | |
|---|---|
SynthParameter(java.lang.String name,
double defaultValue,
int synth,
int parameterNumber)
Constructs a new SynthParameter object |
|
| Method Summary | |
|---|---|
double |
getMax()
Get maximum value for this SynthParameter |
double |
getMin()
Get minimum value for this SynthParameter |
java.lang.String |
getName()
Method to obtain the SynthParameter's name |
int |
getNumber()
Method to obtain the parameter number |
java.lang.String |
getParameterName()
Method to obtain the parameter's name |
int |
getRepresentation()
Method to obtain the SynthParameter's representation |
int |
getSynth()
Method to obtain the SynthParameter's synthesizer number |
double |
getValue()
Method to obtain the parameter's value |
void |
setRange(double min,
double max)
Sets the parameter's possible range of values |
void |
setRepresentation(int rep)
Sets the SynthParameter's representation to linear or exponential |
void |
setValue(double val)
Method that updates the current value of the SynthParameter |
java.lang.String |
toString()
Method to represent the SynthParameter in String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LINEAR_REPRESENTATION
public static final int EXPONENTIAL_REPRESENTATION
| Constructor Detail |
|---|
public SynthParameter(java.lang.String name,
double defaultValue,
int synth,
int parameterNumber)
name - The name of the parameterdefaultValue - The default value of the parametersynth - The synthesizer number of the SynthParameter| Method Detail |
|---|
public void setRepresentation(int rep)
throws BadRepresentationException
rep - The integer representing the representation
BadRepresentationException
public void setRange(double min,
double max)
min - The minimum valuemax - The maximum valuepublic java.lang.String getParameterName()
public double getValue()
public java.lang.String getName()
public void setValue(double val)
throws BadSynthValueException
val - The value to be assigned in the SynthParameter
BadSynthValueException - If the value specified is not in the SynthParameter rangepublic double getMin()
public double getMax()
public int getSynth()
public int getNumber()
public int getRepresentation()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||