|
||||||||
| 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 list of samples
Copyright Georgia Institute of Technology 2006
| Constructor Summary | |
|---|---|
Samples(Sound aSound)
Constructor that takes a sound |
|
| Method Summary | |
|---|---|
Sample |
getSample(int index)
Method to get a specific Sample |
static Sample[] |
getSamples(Sound aSound)
Method to get the array of samples from a sound |
Sound |
getSound()
Method to get these Samples' sound object |
void |
setSample(int index,
double value)
Method to set the value of a specific Sample |
void |
setSample(int index,
int value)
Method to set the value of a specific Sample |
java.lang.String |
toString()
Obtains a string representation of this array of Samples. |
| 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 sound| Method Detail |
|---|
public static Sample[] getSamples(Sound aSound)
aSound - the sound
public java.lang.String toString()
toString in class java.lang.Objectpublic Sample getSample(int index)
index - the index to get the sample from
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
SoundExceptionpublic Sound getSound()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||