public class ChunkInstrumentImpl extends ChunkImpl implements ChunkInstrument
The following features are implemented:
Modifier and Type | Field and Description |
---|---|
protected static byte |
FINE_TUNE_EDEFAULT
The default value of the '
Fine Tune ' attribute. |
protected byte |
fineTune
The cached value of the '
Fine Tune ' attribute. |
protected byte |
gain
The cached value of the '
Gain ' attribute. |
protected static byte |
GAIN_EDEFAULT
The default value of the '
Gain ' attribute. |
protected static byte |
HIGH_NOTE_EDEFAULT
The default value of the '
High Note ' attribute. |
protected static byte |
HIGH_VELOCITY_EDEFAULT
The default value of the '
High Velocity ' attribute. |
protected byte |
highNote
The cached value of the '
High Note ' attribute. |
protected byte |
highVelocity
The cached value of the '
High Velocity ' attribute. |
protected static byte |
LOW_NOTE_EDEFAULT
The default value of the '
Low Note ' attribute. |
protected static byte |
LOW_VELOCITY_EDEFAULT
The default value of the '
Low Velocity ' attribute. |
protected byte |
lowNote
The cached value of the '
Low Note ' attribute. |
protected byte |
lowVelocity
The cached value of the '
Low Velocity ' attribute. |
protected static byte |
UNSHIFTED_NOTE_EDEFAULT
The default value of the '
Unshifted Note ' attribute. |
protected byte |
unshiftedNote
The cached value of the '
Unshifted Note ' attribute. |
BLOCK_ALIGNED_SIZE_EDEFAULT, CHUNK_TYPE_ID_EDEFAULT, CHUNK_TYPE_ID_VALUE_EDEFAULT, SIZE_EDEFAULT
Modifier | Constructor and Description |
---|---|
protected |
ChunkInstrumentImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
ChunkTypeID |
getChunkTypeID() |
int |
getChunkTypeIDValue() |
byte |
getFineTune() |
byte |
getGain() |
byte |
getHighNote() |
byte |
getHighVelocity() |
byte |
getLowNote() |
byte |
getLowVelocity() |
long |
getSize() |
byte |
getUnshiftedNote() |
void |
init(RIFFWave riffWave,
ExtendedByteBuffer buf) |
void |
setFineTune(byte newFineTune) |
void |
setGain(byte newGain) |
void |
setHighNote(byte newHighNote) |
void |
setHighVelocity(byte newHighVelocity) |
void |
setLowNote(byte newLowNote) |
void |
setLowVelocity(byte newLowVelocity) |
void |
setUnshiftedNote(byte newUnshiftedNote) |
byte[] |
toByteArray() |
java.lang.String |
toString() |
getBlockAlignedSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBlockAlignedSize
protected static final byte UNSHIFTED_NOTE_EDEFAULT
Unshifted Note
' attribute.
getUnshiftedNote()
,
Constant Field Valuesprotected byte unshiftedNote
Unshifted Note
' attribute.
getUnshiftedNote()
protected static final byte FINE_TUNE_EDEFAULT
Fine Tune
' attribute.
getFineTune()
,
Constant Field Valuesprotected byte fineTune
Fine Tune
' attribute.
getFineTune()
protected static final byte GAIN_EDEFAULT
Gain
' attribute.
getGain()
,
Constant Field Valuesprotected static final byte LOW_NOTE_EDEFAULT
Low Note
' attribute.
getLowNote()
,
Constant Field Valuesprotected byte lowNote
Low Note
' attribute.
getLowNote()
protected static final byte HIGH_NOTE_EDEFAULT
High Note
' attribute.
getHighNote()
,
Constant Field Valuesprotected byte highNote
High Note
' attribute.
getHighNote()
protected static final byte LOW_VELOCITY_EDEFAULT
Low Velocity
' attribute.
getLowVelocity()
,
Constant Field Valuesprotected byte lowVelocity
Low Velocity
' attribute.
getLowVelocity()
protected static final byte HIGH_VELOCITY_EDEFAULT
High Velocity
' attribute.
getHighVelocity()
,
Constant Field Valuesprotected byte highVelocity
High Velocity
' attribute.
getHighVelocity()
public void init(RIFFWave riffWave, ExtendedByteBuffer buf) throws RiffWaveException
ChunkImpl
init
in interface Chunk
init
in class ChunkImpl
RiffWaveException
protected EClass eStaticClass()
eStaticClass
in class ChunkImpl
public byte getUnshiftedNote()
getUnshiftedNote
in interface ChunkInstrument
ChunkInstrument.setUnshiftedNote(byte)
,
WavPackage.getChunkInstrument_UnshiftedNote()
public void setUnshiftedNote(byte newUnshiftedNote)
setUnshiftedNote
in interface ChunkInstrument
newUnshiftedNote
- the new value of the 'Unshifted Note' attribute.ChunkInstrument.getUnshiftedNote()
public byte getFineTune()
getFineTune
in interface ChunkInstrument
ChunkInstrument.setFineTune(byte)
,
WavPackage.getChunkInstrument_FineTune()
public void setFineTune(byte newFineTune)
setFineTune
in interface ChunkInstrument
newFineTune
- the new value of the 'Fine Tune' attribute.ChunkInstrument.getFineTune()
public byte getGain()
getGain
in interface ChunkInstrument
ChunkInstrument.setGain(byte)
,
WavPackage.getChunkInstrument_Gain()
public void setGain(byte newGain)
setGain
in interface ChunkInstrument
newGain
- the new value of the 'Gain' attribute.ChunkInstrument.getGain()
public byte getLowNote()
getLowNote
in interface ChunkInstrument
ChunkInstrument.setLowNote(byte)
,
WavPackage.getChunkInstrument_LowNote()
public void setLowNote(byte newLowNote)
setLowNote
in interface ChunkInstrument
newLowNote
- the new value of the 'Low Note' attribute.ChunkInstrument.getLowNote()
public byte getHighNote()
getHighNote
in interface ChunkInstrument
ChunkInstrument.setHighNote(byte)
,
WavPackage.getChunkInstrument_HighNote()
public void setHighNote(byte newHighNote)
setHighNote
in interface ChunkInstrument
newHighNote
- the new value of the 'High Note' attribute.ChunkInstrument.getHighNote()
public byte getLowVelocity()
getLowVelocity
in interface ChunkInstrument
ChunkInstrument.setLowVelocity(byte)
,
WavPackage.getChunkInstrument_LowVelocity()
public void setLowVelocity(byte newLowVelocity)
setLowVelocity
in interface ChunkInstrument
newLowVelocity
- the new value of the 'Low Velocity' attribute.ChunkInstrument.getLowVelocity()
public byte getHighVelocity()
getHighVelocity
in interface ChunkInstrument
ChunkInstrument.setHighVelocity(byte)
,
WavPackage.getChunkInstrument_HighVelocity()
public void setHighVelocity(byte newHighVelocity)
setHighVelocity
in interface ChunkInstrument
newHighVelocity
- the new value of the 'High Velocity' attribute.ChunkInstrument.getHighVelocity()
public ChunkTypeID getChunkTypeID()
ChunkImpl
getChunkTypeID
in interface Chunk
getChunkTypeID
in class ChunkImpl
ChunkTypeID
,
WavPackage.getChunk_ChunkTypeID()
public int getChunkTypeIDValue()
ChunkImpl
getChunkTypeIDValue
in interface Chunk
getChunkTypeIDValue
in class ChunkImpl
WavPackage.getChunk_ChunkTypeIDValue()
public long getSize()
ChunkImpl
getSize
in interface Chunk
getSize
in class ChunkImpl
WavPackage.getChunk_Size()
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 java.lang.String toString()
public byte[] toByteArray()
ChunkImpl
toByteArray
in interface Chunk
toByteArray
in class ChunkImpl