|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.util.TunePlayer
public class TunePlayer
Any QBasic fans out there? ;-)
Constructor Summary | |
---|---|
TunePlayer()
|
|
TunePlayer(int sampleRate)
|
Method Summary | |
---|---|
void |
closeLine(SourceDataLine line)
|
void |
downOctave()
|
int |
getMillis()
Gets the current note length in milliseconds, by the current tempo. |
int |
getNoteLength()
|
int |
getOctave()
|
int |
getSampleRate()
|
int |
getTempo()
|
int |
getTone(int step,
char mod)
Gets the value of the given tone for the current octave. |
SourceDataLine |
openLine()
|
boolean |
play(String commandString)
|
void |
setNoteLength(int noteLength)
|
void |
setOctave(int octave)
|
void |
setTempo(int tempo)
|
int |
toMillis(int noteLen)
Converts the given note length to milliseconds, by the current tempo. |
void |
upOctave()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TunePlayer()
public TunePlayer(int sampleRate)
Method Detail |
---|
public int getSampleRate()
public int getNoteLength()
public int getTempo()
public int getOctave()
public int getTone(int step, char mod)
public int getMillis()
public int toMillis(int noteLen)
public void setNoteLength(int noteLength)
public void setTempo(int tempo)
public void setOctave(int octave)
public void downOctave()
public void upOctave()
public SourceDataLine openLine() throws LineUnavailableException
LineUnavailableException
public void closeLine(SourceDataLine line)
public boolean play(String commandString)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |