public class InstrumentsContainer extends Object
| Constructor and Description |
|---|
InstrumentsContainer(Module module,
int anzInstruments,
int anzSamples)
Constructor for InstrumentsContainer
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFullSampleLength()
Add all sample length values to retrive the complete
amount.
|
Instrument |
getInstrument(int index)
returns the instrument with the index
|
Instrument[] |
getInstruments() |
Module |
getParentModule() |
Sample |
getSample(int sampleIndex)
returns the sample with the index
|
Sample[] |
getSamples() |
void |
reallocSampleSpace(int newAmount)
With XM-Mods we do not know the real ammount
of samples at startup
|
void |
setInstrument(int index,
Instrument instrument) |
void |
setSample(int index,
Sample sample)
Stores the sample with desired index
|
String |
toString() |
public InstrumentsContainer(Module module, int anzInstruments, int anzSamples)
public void reallocSampleSpace(int newAmount)
newAmount - public void setInstrument(int index,
Instrument instrument)
public void setSample(int index,
Sample sample)
index - sample - public Sample getSample(int sampleIndex)
sampleIndex - public int getFullSampleLength()
public Instrument getInstrument(int index)
sampleIndex - public Instrument[] getInstruments()
public Sample[] getSamples()
public Module getParentModule()
public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.