public interface Sample
The following features are supported:
Name
Offset Channel1 Start
Offset Channel1 End
Offset Channel2 Start
Offset Channel2 End
Start
End
Loop Start
Sample Rate
Sample Tune
Number Of Sample Frames
Play Level
Stretch Step
Unknown Byte Mono1
Unknown Byte Mono2
Unknown Byte Mono3
Unknown Byte Mono4
Unknown Byte Stereo1
Unknown Byte Stereo2
Unknown Byte Stereo3
Unknown Byte Stereo4
Audio Data Channel1
Audio Data Channel2
Audio Data Channel Both
Audio Data Loop Start
Slice Array
Loop
Loop Type
Slice
Stereo Original
Stereo Current
Label
Mem Used In Bytes
Empty
Part Count
Pattern Count
Sample In Pattern Info List
Sample Number Original
Sample Number Current
EsxPackage.getSample()
Modifier and Type | Method and Description |
---|---|
void |
export(java.io.File file) |
byte[] |
getAudioDataChannel1()
Returns the value of the 'Audio Data Channel1' attribute.
|
byte[] |
getAudioDataChannel2()
Returns the value of the 'Audio Data Channel2' attribute.
|
byte[] |
getAudioDataChannelBoth()
Returns the value of the 'Audio Data Channel Both' attribute.
|
byte[] |
getAudioDataLoopStart()
Returns the value of the 'Audio Data Loop Start' attribute.
|
int |
getEnd()
Returns the value of the 'End' attribute.
|
java.lang.String |
getLabel()
Returns the value of the 'Label' attribute.
|
int |
getLoopStart()
Returns the value of the 'Loop Start' attribute.
|
LoopType |
getLoopType()
Returns the value of the 'Loop Type' attribute.
|
int |
getMemUsedInBytes()
Returns the value of the 'Mem Used In Bytes' attribute.
|
java.lang.String |
getName()
Returns the value of the 'Name' attribute.
|
int |
getNumberOfSampleFrames()
Returns the value of the 'Number Of Sample Frames' attribute.
|
int |
getOffsetChannel1End()
Returns the value of the 'Offset Channel1 End' attribute.
|
int |
getOffsetChannel1Start()
Returns the value of the 'Offset Channel1 Start' attribute.
|
int |
getOffsetChannel2End()
Returns the value of the 'Offset Channel2 End' attribute.
|
int |
getOffsetChannel2Start()
Returns the value of the 'Offset Channel2 Start' attribute.
|
int |
getPartCount()
Returns the value of the 'Part Count' attribute.
|
int |
getPatternCount()
Returns the value of the 'Pattern Count' attribute.
|
PlayLevel |
getPlayLevel()
Returns the value of the 'Play Level' attribute.
|
|
getSampleInPatternInfoList()
Returns the value of the 'Sample In Pattern Info List' reference list.
|
SampleNumber |
getSampleNumberCurrent()
Returns the value of the 'Sample Number Current' attribute.
|
SampleNumber |
getSampleNumberOriginal()
Returns the value of the 'Sample Number Original' attribute.
|
int |
getSampleRate()
Returns the value of the 'Sample Rate' attribute.
|
SampleTune |
getSampleTune()
Returns the value of the 'Sample Tune' containment reference.
|
byte[] |
getSliceArray()
Returns the value of the 'Slice Array' attribute.
|
int |
getStart()
Returns the value of the 'Start' attribute.
|
StretchStep |
getStretchStep()
Returns the value of the 'Stretch Step' attribute.
|
byte |
getUnknownByteMono1()
Returns the value of the 'Unknown Byte Mono1' attribute.
|
byte |
getUnknownByteMono2()
Returns the value of the 'Unknown Byte Mono2' attribute.
|
byte |
getUnknownByteMono3()
Returns the value of the 'Unknown Byte Mono3' attribute.
|
byte |
getUnknownByteMono4()
Returns the value of the 'Unknown Byte Mono4' attribute.
|
byte |
getUnknownByteStereo1()
Returns the value of the 'Unknown Byte Stereo1' attribute.
|
byte |
getUnknownByteStereo2()
Returns the value of the 'Unknown Byte Stereo2' attribute.
|
byte |
getUnknownByteStereo3()
Returns the value of the 'Unknown Byte Stereo3' attribute.
|
byte |
getUnknownByteStereo4()
Returns the value of the 'Unknown Byte Stereo4' attribute.
|
void |
initHeaderMono(byte[] b) |
void |
initHeaderMono(byte[] b,
int sampleNumber) |
void |
initHeaderStereo(byte[] b) |
void |
initHeaderStereo(byte[] b,
int sampleNumber) |
void |
initOffsetChannel(byte[] b,
AudioChannelType audioChannelType) |
void |
initSliceArray(byte[] b) |
boolean |
isEmpty()
Returns the value of the 'Empty' attribute.
|
boolean |
isLoop()
Returns the value of the 'Loop' attribute.
|
boolean |
isSlice()
Returns the value of the 'Slice' attribute.
|
boolean |
isStereoCurrent()
Returns the value of the 'Stereo Current' attribute.
|
boolean |
isStereoOriginal()
Returns the value of the 'Stereo Original' attribute.
|
void |
setAudioDataChannel1(byte[] value)
Sets the value of the '
Audio Data Channel1 ' attribute. |
void |
setAudioDataChannel2(byte[] value)
Sets the value of the '
Audio Data Channel2 ' attribute. |
void |
setEnd(int value)
Sets the value of the '
End ' attribute. |
void |
setLoopStart(int value)
Sets the value of the '
Loop Start ' attribute. |
void |
setName(java.lang.String value)
Sets the value of the '
Name ' attribute. |
void |
setNumberOfSampleFrames(int value)
Sets the value of the '
Number Of Sample Frames ' attribute. |
void |
setOffsetChannel1End(int value)
Sets the value of the '
Offset Channel1 End ' attribute. |
void |
setOffsetChannel1Start(int value)
Sets the value of the '
Offset Channel1 Start ' attribute. |
void |
setOffsetChannel2End(int value)
Sets the value of the '
Offset Channel2 End ' attribute. |
void |
setOffsetChannel2Start(int value)
Sets the value of the '
Offset Channel2 Start ' attribute. |
void |
setPlayLevel(PlayLevel value)
Sets the value of the '
Play Level ' attribute. |
void |
setSampleNumberOriginal(SampleNumber value)
Sets the value of the '
Sample Number Original ' attribute. |
void |
setSampleRate(int value)
Sets the value of the '
Sample Rate ' attribute. |
void |
setSampleTune(SampleTune value)
Sets the value of the '
Sample Tune ' containment reference. |
void |
setSliceArray(byte[] value)
Sets the value of the '
Slice Array ' attribute. |
void |
setStart(int value)
Sets the value of the '
Start ' attribute. |
void |
setStereoOriginal(boolean value)
Sets the value of the '
Stereo Original ' attribute. |
void |
setStretchStep(StretchStep value)
Sets the value of the '
Stretch Step ' attribute. |
void |
setUnknownByteMono1(byte value)
Sets the value of the '
Unknown Byte Mono1 ' attribute. |
void |
setUnknownByteMono2(byte value)
Sets the value of the '
Unknown Byte Mono2 ' attribute. |
void |
setUnknownByteMono3(byte value)
Sets the value of the '
Unknown Byte Mono3 ' attribute. |
void |
setUnknownByteMono4(byte value)
Sets the value of the '
Unknown Byte Mono4 ' attribute. |
void |
setUnknownByteStereo1(byte value)
Sets the value of the '
Unknown Byte Stereo1 ' attribute. |
void |
setUnknownByteStereo2(byte value)
Sets the value of the '
Unknown Byte Stereo2 ' attribute. |
void |
setUnknownByteStereo3(byte value)
Sets the value of the '
Unknown Byte Stereo3 ' attribute. |
void |
setUnknownByteStereo4(byte value)
Sets the value of the '
Unknown Byte Stereo4 ' attribute. |
byte[] |
toHeaderMonoByteArray() |
byte[] |
toHeaderStereoByteArray() |
byte[] |
toOffsetChannelByteArray(AudioChannelType audioChannelType) |
RIFFWave |
toRIFFWave() |
void |
toRIFFWaveFile(java.io.File file) |
byte[] |
toSliceByteArray() |
java.lang.String getName()
If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
setName(String)
,
EsxPackage.getSample_Name()
void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
int getMemUsedInBytes()
"0"
.
If the meaning of the 'Mem Used In Bytes' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_MemUsedInBytes()
boolean isEmpty()
"true"
.
If the meaning of the 'Empty' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_Empty()
int getPartCount()
If the meaning of the 'Part Count' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_PartCount()
int getPatternCount()
If the meaning of the 'Pattern Count' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_PatternCount()
getSampleInPatternInfoList()
SampleInPatternInfo
.
If the meaning of the 'Sample In Pattern Info List' containment reference list isn't clear, there really should be more of a description here...
EsxPackage.getSample_SampleInPatternInfoList()
int getOffsetChannel1Start()
If the meaning of the 'Offset Channel1 Start' attribute isn't clear, there really should be more of a description here...
setOffsetChannel1Start(int)
,
EsxPackage.getSample_OffsetChannel1Start()
void setOffsetChannel1Start(int value)
Offset Channel1 Start
' attribute.
value
- the new value of the 'Offset Channel1 Start' attribute.getOffsetChannel1Start()
int getOffsetChannel1End()
If the meaning of the 'Offset Channel1 End' attribute isn't clear, there really should be more of a description here...
setOffsetChannel1End(int)
,
EsxPackage.getSample_OffsetChannel1End()
void setOffsetChannel1End(int value)
Offset Channel1 End
' attribute.
value
- the new value of the 'Offset Channel1 End' attribute.getOffsetChannel1End()
int getOffsetChannel2Start()
If the meaning of the 'Offset Channel2 Start' attribute isn't clear, there really should be more of a description here...
setOffsetChannel2Start(int)
,
EsxPackage.getSample_OffsetChannel2Start()
void setOffsetChannel2Start(int value)
Offset Channel2 Start
' attribute.
value
- the new value of the 'Offset Channel2 Start' attribute.getOffsetChannel2Start()
int getOffsetChannel2End()
If the meaning of the 'Offset Channel2 End' attribute isn't clear, there really should be more of a description here...
setOffsetChannel2End(int)
,
EsxPackage.getSample_OffsetChannel2End()
void setOffsetChannel2End(int value)
Offset Channel2 End
' attribute.
value
- the new value of the 'Offset Channel2 End' attribute.getOffsetChannel2End()
int getStart()
If the meaning of the 'Start' attribute isn't clear, there really should be more of a description here...
setStart(int)
,
EsxPackage.getSample_Start()
void setStart(int value)
Start
' attribute.
value
- the new value of the 'Start' attribute.getStart()
int getEnd()
If the meaning of the 'End' attribute isn't clear, there really should be more of a description here...
setEnd(int)
,
EsxPackage.getSample_End()
void setEnd(int value)
End
' attribute.
value
- the new value of the 'End' attribute.getEnd()
int getLoopStart()
If the meaning of the 'Loop Start' attribute isn't clear, there really should be more of a description here...
setLoopStart(int)
,
EsxPackage.getSample_LoopStart()
void setLoopStart(int value)
Loop Start
' attribute.
value
- the new value of the 'Loop Start' attribute.getLoopStart()
int getSampleRate()
If the meaning of the 'Sample Rate' attribute isn't clear, there really should be more of a description here...
setSampleRate(int)
,
EsxPackage.getSample_SampleRate()
void setSampleRate(int value)
Sample Rate
' attribute.
value
- the new value of the 'Sample Rate' attribute.getSampleRate()
SampleTune getSampleTune()
If the meaning of the 'Sample Tune' containment reference isn't clear, there really should be more of a description here...
setSampleTune(SampleTune)
,
EsxPackage.getSample_SampleTune()
void setSampleTune(SampleTune value)
Sample Tune
' containment reference.
value
- the new value of the 'Sample Tune' containment reference.getSampleTune()
int getNumberOfSampleFrames()
If the meaning of the 'Number Of Sample Frames' attribute isn't clear, there really should be more of a description here...
setNumberOfSampleFrames(int)
,
EsxPackage.getSample_NumberOfSampleFrames()
void setNumberOfSampleFrames(int value)
Number Of Sample Frames
' attribute.
value
- the new value of the 'Number Of Sample Frames' attribute.getNumberOfSampleFrames()
PlayLevel getPlayLevel()
PlayLevel
.
If the meaning of the 'Play Level' attribute isn't clear, there really should be more of a description here...
PlayLevel
,
setPlayLevel(PlayLevel)
,
EsxPackage.getSample_PlayLevel()
void setPlayLevel(PlayLevel value)
Play Level
' attribute.
value
- the new value of the 'Play Level' attribute.PlayLevel
,
getPlayLevel()
StretchStep getStretchStep()
StretchStep
.
If the meaning of the 'Stretch Step' attribute isn't clear, there really should be more of a description here...
StretchStep
,
setStretchStep(StretchStep)
,
EsxPackage.getSample_StretchStep()
void setStretchStep(StretchStep value)
Stretch Step
' attribute.
value
- the new value of the 'Stretch Step' attribute.StretchStep
,
getStretchStep()
byte getUnknownByteMono1()
"0"
.
If the meaning of the 'Unknown Byte Mono1' attribute isn't clear, there really should be more of a description here...
setUnknownByteMono1(byte)
,
EsxPackage.getSample_UnknownByteMono1()
void setUnknownByteMono1(byte value)
Unknown Byte Mono1
' attribute.
value
- the new value of the 'Unknown Byte Mono1' attribute.getUnknownByteMono1()
byte getUnknownByteMono2()
"0"
.
If the meaning of the 'Unknown Byte Mono2' attribute isn't clear, there really should be more of a description here...
setUnknownByteMono2(byte)
,
EsxPackage.getSample_UnknownByteMono2()
void setUnknownByteMono2(byte value)
Unknown Byte Mono2
' attribute.
value
- the new value of the 'Unknown Byte Mono2' attribute.getUnknownByteMono2()
byte getUnknownByteMono3()
"0"
.
If the meaning of the 'Unknown Byte Mono3' attribute isn't clear, there really should be more of a description here...
setUnknownByteMono3(byte)
,
EsxPackage.getSample_UnknownByteMono3()
void setUnknownByteMono3(byte value)
Unknown Byte Mono3
' attribute.
value
- the new value of the 'Unknown Byte Mono3' attribute.getUnknownByteMono3()
byte getUnknownByteMono4()
"0"
.
If the meaning of the 'Unknown Byte Mono4' attribute isn't clear, there really should be more of a description here...
setUnknownByteMono4(byte)
,
EsxPackage.getSample_UnknownByteMono4()
void setUnknownByteMono4(byte value)
Unknown Byte Mono4
' attribute.
value
- the new value of the 'Unknown Byte Mono4' attribute.getUnknownByteMono4()
byte getUnknownByteStereo1()
"0"
.
If the meaning of the 'Unknown Byte Stereo1' attribute isn't clear, there really should be more of a description here...
setUnknownByteStereo1(byte)
,
EsxPackage.getSample_UnknownByteStereo1()
void setUnknownByteStereo1(byte value)
Unknown Byte Stereo1
' attribute.
value
- the new value of the 'Unknown Byte Stereo1' attribute.getUnknownByteStereo1()
byte getUnknownByteStereo2()
"0"
.
If the meaning of the 'Unknown Byte Stereo2' attribute isn't clear, there really should be more of a description here...
setUnknownByteStereo2(byte)
,
EsxPackage.getSample_UnknownByteStereo2()
void setUnknownByteStereo2(byte value)
Unknown Byte Stereo2
' attribute.
value
- the new value of the 'Unknown Byte Stereo2' attribute.getUnknownByteStereo2()
byte getUnknownByteStereo3()
"0"
.
If the meaning of the 'Unknown Byte Stereo3' attribute isn't clear, there really should be more of a description here...
setUnknownByteStereo3(byte)
,
EsxPackage.getSample_UnknownByteStereo3()
void setUnknownByteStereo3(byte value)
Unknown Byte Stereo3
' attribute.
value
- the new value of the 'Unknown Byte Stereo3' attribute.getUnknownByteStereo3()
byte getUnknownByteStereo4()
"0"
.
If the meaning of the 'Unknown Byte Stereo4' attribute isn't clear, there really should be more of a description here...
setUnknownByteStereo4(byte)
,
EsxPackage.getSample_UnknownByteStereo4()
void setUnknownByteStereo4(byte value)
Unknown Byte Stereo4
' attribute.
value
- the new value of the 'Unknown Byte Stereo4' attribute.getUnknownByteStereo4()
byte[] getAudioDataChannel1()
""
.
If the meaning of the 'Audio Data Channel1' attribute isn't clear, there really should be more of a description here...
setAudioDataChannel1(byte[])
,
EsxPackage.getSample_AudioDataChannel1()
void setAudioDataChannel1(byte[] value)
Audio Data Channel1
' attribute.
value
- the new value of the 'Audio Data Channel1' attribute.getAudioDataChannel1()
byte[] getAudioDataChannel2()
""
.
If the meaning of the 'Audio Data Channel2' attribute isn't clear, there really should be more of a description here...
setAudioDataChannel2(byte[])
,
EsxPackage.getSample_AudioDataChannel2()
void setAudioDataChannel2(byte[] value)
Audio Data Channel2
' attribute.
value
- the new value of the 'Audio Data Channel2' attribute.getAudioDataChannel2()
byte[] getAudioDataChannelBoth()
If the meaning of the 'Audio Data Channel Both' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_AudioDataChannelBoth()
byte[] getAudioDataLoopStart()
If the meaning of the 'Audio Data Loop Start' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_AudioDataLoopStart()
byte[] getSliceArray()
If the meaning of the 'Slice Array' attribute isn't clear, there really should be more of a description here...
setSliceArray(byte[])
,
EsxPackage.getSample_SliceArray()
void setSliceArray(byte[] value)
Slice Array
' attribute.
value
- the new value of the 'Slice Array' attribute.getSliceArray()
SampleNumber getSampleNumberOriginal()
"-1"
.
The literals are from the enumeration SampleNumber
.
If the meaning of the 'Sample Number Original' attribute isn't clear, there really should be more of a description here...
SampleNumber
,
setSampleNumberOriginal(SampleNumber)
,
EsxPackage.getSample_SampleNumberOriginal()
void setSampleNumberOriginal(SampleNumber value)
Sample Number Original
' attribute.
value
- the new value of the 'Sample Number Original' attribute.SampleNumber
,
getSampleNumberOriginal()
SampleNumber getSampleNumberCurrent()
"-1"
.
The literals are from the enumeration SampleNumber
.
If the meaning of the 'Sample Number Current' attribute isn't clear, there really should be more of a description here...
SampleNumber
,
EsxPackage.getSample_SampleNumberCurrent()
void export(java.io.File file) throws java.io.IOException
java.io.IOException
void initHeaderMono(byte[] b)
void initHeaderMono(byte[] b, int sampleNumber)
void initHeaderStereo(byte[] b)
void initHeaderStereo(byte[] b, int sampleNumber)
void initOffsetChannel(byte[] b, AudioChannelType audioChannelType)
void initSliceArray(byte[] b)
byte[] toHeaderMonoByteArray()
byte[] toHeaderStereoByteArray()
byte[] toOffsetChannelByteArray(AudioChannelType audioChannelType)
byte[] toSliceByteArray()
RIFFWave toRIFFWave()
void toRIFFWaveFile(java.io.File file) throws java.io.IOException
java.io.IOException
boolean isLoop()
If the meaning of the 'Loop' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_Loop()
LoopType getLoopType()
LoopType
.
If the meaning of the 'Loop Type' attribute isn't clear, there really should be more of a description here...
LoopType
,
EsxPackage.getSample_LoopType()
boolean isSlice()
If the meaning of the 'Slice' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_Slice()
boolean isStereoOriginal()
If the meaning of the 'Stereo Original' attribute isn't clear, there really should be more of a description here...
setStereoOriginal(boolean)
,
EsxPackage.getSample_StereoOriginal()
void setStereoOriginal(boolean value)
Stereo Original
' attribute.
value
- the new value of the 'Stereo Original' attribute.isStereoOriginal()
boolean isStereoCurrent()
"true"
.
If the meaning of the 'Stereo Current' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_StereoCurrent()
java.lang.String getLabel()
"true"
.
If the meaning of the 'Label' attribute isn't clear, there really should be more of a description here...
EsxPackage.getSample_Label()