|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSamples
public class Samples
Class that represents a sample. this is for JES, and beware arrays are 1-index..? Copyright Georgia Institute of Technology 2006
Constructor Summary | |
---|---|
Samples(Sound aSound)
Constructor that takes a file name |
Method Summary | |
---|---|
Sample |
getSample(int index)
gets item |
static Sample[] |
getSamples(Sound aSound)
|
Sound |
getSound()
get sound object |
void |
setSample(int index,
double value)
sets item |
void |
setSample(int index,
int value)
sets item |
java.lang.String |
toString()
Obtains a string representation of this JavaSound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Samples(Sound aSound)
aSound
- the name of the file to read the sound fromMethod Detail |
---|
public static Sample[] getSamples(Sound aSound)
aSound
- the name of the file to read the sound from
public java.lang.String toString()
toString
in class java.lang.Object
public Sample getSample(int index)
index
- the index to get the sample
public void setSample(int index, int value) throws SoundException
index
- the index to get the samplevalue
- the value to set it to
SoundException
public void setSample(int index, double value) throws SoundException
index
- the index to get the samplevalue
- the value to set it to
SoundException
public Sound getSound()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |