public class SampleTuneImpl extends EObjectImpl implements SampleTune
The following features are implemented:
Modifier and Type | Field and Description |
---|---|
protected float |
value
The cached value of the '
Value ' attribute. |
protected static float |
VALUE_EDEFAULT
The default value of the '
Value ' attribute. |
Modifier | Constructor and Description |
---|---|
protected |
SampleTuneImpl() |
Modifier and Type | Method and Description |
---|---|
float |
calculateSampleTuneFromSampleRate(int sampleRate)
Calculates the SampleTune value from the given sampleRate (using a
baseSamplingRate of 44100)
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
short |
getShortFromCurrentValue() |
float |
getValue() |
void |
setCurrentValueFromShort(short packedShort) |
void |
setValue(float newValue) |
java.lang.String |
toString() |
protected static final float VALUE_EDEFAULT
Value
' attribute.
getValue()
,
Constant Field Valuesprotected float value
Value
' attribute.
getValue()
protected EClass eStaticClass()
public float getValue()
getValue
in interface SampleTune
SampleTune.setValue(float)
,
EsxPackage.getSampleTune_Value()
public void setValue(float newValue)
setValue
in interface SampleTune
newValue
- the new value of the 'Value' attribute.SampleTune.getValue()
public float calculateSampleTuneFromSampleRate(int sampleRate)
Formula Used:
log(sampleRate/44100) | ||
12 * | ---------------------- | = SampleTune |
log(2) |
calculateSampleTuneFromSampleRate
in interface SampleTune
public short getShortFromCurrentValue()
getShortFromCurrentValue
in interface SampleTune
public void setCurrentValueFromShort(short packedShort)
setCurrentValueFromShort
in interface SampleTune
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
public void eSet(int featureID, java.lang.Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public java.lang.String toString()