|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vwp.sound.mod.modplay.module.Sample
public class Sample
A sample. Should be generic enough to support all module formats
Field Summary | |
---|---|
static int |
FORWARD
forward loop |
static int |
NO_LOOP
no loop |
static int |
PING_PONG
ping-pong loop |
Constructor Summary | |
---|---|
Sample(java.lang.String id,
java.lang.String name,
double volume,
double panning,
int length,
int loopType,
int loopStart,
int loopLength,
double relativeNote,
double fineTune,
ModuleUnits units)
|
Method Summary | |
---|---|
short[] |
getData()
|
double |
getFineTune()
|
java.lang.String |
getId()
|
java.lang.String |
getInfo()
|
int |
getLength()
|
int |
getLoopLength()
|
int |
getLoopStart()
|
int |
getLoopType()
|
java.lang.String |
getName()
|
double |
getPanning()
|
double |
getRelativeNote()
|
ModuleUnits |
getUnits()
|
double |
getVolume()
|
void |
setData(short[] data)
Sets the sample data. |
void |
setUnits(ModuleUnits units)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_LOOP
public static final int FORWARD
public static final int PING_PONG
Constructor Detail |
---|
public Sample(java.lang.String id, java.lang.String name, double volume, double panning, int length, int loopType, int loopStart, int loopLength, double relativeNote, double fineTune, ModuleUnits units)
id
- id of volume. must be uniquename
- name of samplevolume
- volume of samplepanning
- panning of sample (0 = far left, 0.5 = middle, 1 = far right)
(ignored if Module.panningType != Module.SAMPLE_PANNING)length
- length of the sample dataloopType
- type of looploopStart
- start offset of looploopLength
- length of looprelativeNote
- add relativeNote notes to the rate when playing this
sample (can be negative)fineTune
- same function as relativeNoteMethod Detail |
---|
public java.lang.String getInfo()
public void setData(short[] data)
public short[] getData()
public java.lang.String getId()
public java.lang.String getName()
public double getVolume()
public double getPanning()
public int getLength()
public int getLoopType()
public int getLoopStart()
public int getLoopLength()
public double getRelativeNote()
public double getFineTune()
public void setUnits(ModuleUnits units)
public ModuleUnits getUnits()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |