|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.jsyn.SynthNoteDimensionNameSpace
public class SynthNoteDimensionNameSpace
Create a DimensionNameSpace from the ports of a JSyn SynthNote. Ignores amplitude and frequency ports which it assumes are there anyway (reserving those for standard dimensions pitch and amplitude). So this only captures port that are timbrally unique to a SynthNote. Dummy port names 0..3 are added for duration, pitch, amp, hold
Constructor Summary | |
---|---|
SynthNoteDimensionNameSpace(java.lang.String synthNoteClassname)
|
Method Summary | |
---|---|
int |
dimension()
|
java.util.Enumeration |
dimensionNames()
|
double |
getDefault(int dim)
|
int |
getDimension(java.lang.String name)
|
java.lang.String |
getDimensionName(int dim)
|
double |
getHighLimit(int dim)
return highest allowable value for specified dimension |
double |
getLowLimit(int dim)
return lowest allowable value for specified dimension |
int |
getNumberOfNames()
|
void |
setDefault(int dim,
double value)
set the default value for a dimension |
void |
setDimensionName(int dim,
java.lang.String name)
assign a name to a dimension |
void |
setLimits(int dim,
double low,
double high)
set the lowest and highest limits for a dimension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynthNoteDimensionNameSpace(java.lang.String synthNoteClassname)
Method Detail |
---|
public int getNumberOfNames()
getNumberOfNames
in interface DimensionNameSpace
public int dimension()
dimension
in interface DimensionNameSpace
public java.lang.String getDimensionName(int dim)
getDimensionName
in interface DimensionNameSpace
public int getDimension(java.lang.String name)
getDimension
in interface DimensionNameSpace
public void setDimensionName(int dim, java.lang.String name)
setDimensionName
in interface DimensionNameSpace
public double getLowLimit(int dim)
getLowLimit
in interface DimensionNameSpace
public double getHighLimit(int dim)
getHighLimit
in interface DimensionNameSpace
public void setLimits(int dim, double low, double high)
setLimits
in interface DimensionNameSpace
public void setDefault(int dim, double value)
DimensionNameSpace
setDefault
in interface DimensionNameSpace
public double getDefault(int dim)
getDefault
in interface DimensionNameSpace
public java.util.Enumeration dimensionNames()
dimensionNames
in interface DimensionNameSpace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |