|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.midi.MidiDimensionNameSpace
public class MidiDimensionNameSpace
MidiDimensionNameSpace is a singleton and cannot be instantiated. Use instead: MidiDimensionNameSpace.instance();
dim 0 = "duration" 0..8 dim 1 = "pitch" 0..127 dim 2 = "velocity" 0..127 dim 3 = "hold"
DimensionNameSpaceTranslator
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)
|
double |
getLowLimit(int dim)
|
int |
getNumberOfNames()
|
static MidiDimensionNameSpace |
instance()
|
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 |
Method Detail |
---|
public static MidiDimensionNameSpace instance()
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 double getDefault(int dim)
getDefault
in interface DimensionNameSpace
public void setDefault(int dim, double value)
setDefault
in interface DimensionNameSpace
public void setLimits(int dim, double low, double high)
setLimits
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 |