public class Sample extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
baseFrequency |
String |
dosFileName |
int |
fineTune |
int |
flag_CvT |
int |
flags |
int |
globalVolume |
int |
length |
int |
loopType |
String |
name |
int |
panning |
int |
repeatLength |
int |
repeatStart |
int |
repeatStop |
int[] |
sample |
int |
sustainLoopEnd |
int |
sustainLoopStart |
int |
transpose |
int |
type |
int |
vibratoDepth |
int |
vibratoRate |
int |
vibratoSweep |
int |
vibratoType |
int |
volume |
| Constructor and Description |
|---|
Sample()
Constructor for Sample
|
| Modifier and Type | Method and Description |
|---|---|
void |
allocSampleData() |
void |
fixSampleLoops(int modType)
Fits the loop-data given in instruments loaded
These values are often not correkt
|
int |
getInterpolatedSample(int doISP,
int currentSamplePos,
int currentTuningPos) |
void |
setBaseFrequency(int baseFrequency) |
void |
setCvT(int flag_CvT) |
void |
setDosFileName(String dosFileName) |
void |
setFineTune(int fineTune) |
void |
setFlags(int newFlags) |
void |
setGlobalVolume(int globalVolume) |
void |
setLength(int length) |
void |
setLoopType(int loopType) |
void |
setName(String name) |
void |
setPanning(int panning) |
void |
setRepeatLength(int repeatLength) |
void |
setRepeatStart(int repeatStart) |
void |
setRepeatStop(int repeatStop) |
void |
setSample(int[] sample) |
void |
setSustainLoopEnd(int sustainLoopEnd) |
void |
setSustainLoopStart(int sustainLoopStart) |
void |
setTranspose(int transpose) |
void |
setType(int type) |
void |
setVibratoDepth(int vibratoDepth) |
void |
setVibratoRate(int vibratoRate) |
void |
setVibratoSweep(int vibratoSweep) |
void |
setVibratoType(int vibratoType) |
void |
setVolume(int volume) |
String |
toShortString() |
String |
toString() |
public String name
public int length
public int fineTune
public int volume
public int repeatStart
public int repeatStop
public int repeatLength
public int loopType
public int transpose
public int baseFrequency
public int type
public String dosFileName
public int flags
public int panning
public int vibratoType
public int vibratoSweep
public int vibratoDepth
public int vibratoRate
public int sustainLoopStart
public int sustainLoopEnd
public int flag_CvT
public int globalVolume
public int[] sample
public void allocSampleData()
public void fixSampleLoops(int modType)
modType - public String toString()
toString in class ObjectObject.toString()public String toShortString()
public int getInterpolatedSample(int doISP,
int currentSamplePos,
int currentTuningPos)
public void setBaseFrequency(int baseFrequency)
baseFrequency - The baseFrequency to set.public void setDosFileName(String dosFileName)
dosFileName - The dosFileName to set.public void setFineTune(int fineTune)
fineTune - The fineTune to set.public void setFlags(int newFlags)
flags - The flags to set.public void setLength(int length)
length - The length to set.public void setLoopType(int loopType)
loopType - The loopType to set.public void setName(String name)
name - The name to set.public void setRepeatLength(int repeatLength)
repeatLength - The repeatLength to set.public void setRepeatStart(int repeatStart)
repeatStart - The repeatStart to set.public void setRepeatStop(int repeatStop)
repeatStop - The repeatStop to set.public void setSample(int[] sample)
sample - The sample to set.public void setTranspose(int transpose)
transpose - The transpose to set.public void setType(int type)
type - The type to set.public void setVolume(int volume)
volume - The volume to set.public void setPanning(int panning)
panning - The panning to set.public void setCvT(int flag_CvT)
cvT - the cvT to setpublic void setSustainLoopStart(int sustainLoopStart)
sustainLoopStart - the sustainLoopStart to setpublic void setSustainLoopEnd(int sustainLoopEnd)
sustainLoopEnd - the sustainLoopEnd to setpublic void setVibratoDepth(int vibratoDepth)
vibratoDepth - The vibratoDepth to set.public void setVibratoRate(int vibratoRate)
vibratoRate - The vibratoRate to set.public void setVibratoSweep(int vibratoSweep)
vibratoSweep - The vibratoSweep to set.public void setVibratoType(int vibratoType)
vibratoType - The vibratoType to set.public void setGlobalVolume(int globalVolume)
globalVolume - the globalVolume to setCopyright © 2014. All rights reserved.