|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmusic.midi.PhrasePlayer
public class PhrasePlayer
Constructor Summary | |
---|---|
PhrasePlayer()
Default constructor. |
Method Summary | |
---|---|
void |
addPhrase(jm.music.data.Phrase phrase,
int instrument)
Adds a phrase to be played with the given instrument. |
void |
addPhrase(jm.music.data.Phrase phrase,
int instrument,
boolean loop)
Adds a phrase to be played with the given instrument. |
jm.music.data.Phrase[] |
getPhrases()
|
float |
getTempoBPM()
|
float |
getTempoMPQ()
|
static void |
main(java.lang.String[] args)
|
int |
numberOfPhrases()
|
void |
play()
Starts playback. |
void |
removePhrase(jm.music.data.Phrase phrase)
Removes the given phrase from the player and stops playing it. |
void |
setTempoBPM(float tempoBPM)
|
void |
setTempoMPQ(float tempoMPQ)
|
void |
stop()
Ceases playback. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhrasePlayer()
Method Detail |
---|
public void addPhrase(jm.music.data.Phrase phrase, int instrument)
phrase
- the phrase to be playedinstrument
- the instrument to play the phrase withpublic void addPhrase(jm.music.data.Phrase phrase, int instrument, boolean loop)
phrase
- the phrase to be playedinstrument
- the instrument to play the phrase withloop
- whether or not to restart the phrase upon completion.public void removePhrase(jm.music.data.Phrase phrase)
phrase
- - the phrase to removepublic void play()
play
in interface IMidiPlayer
public int numberOfPhrases()
public jm.music.data.Phrase[] getPhrases()
public void stop()
public void setTempoMPQ(float tempoMPQ)
public void setTempoBPM(float tempoBPM)
public float getTempoMPQ()
public float getTempoBPM()
public static void main(java.lang.String[] args) throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |