|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Composable
Define the interface for Composable objects for JMSL.
This interface is central to creating classes that can be placed in JMSL hierarchies.
Any object that supports this interface can be placed
in a JMSL hierarchy and scheduled.
See MusicJob, ParallelCollection, SequentialCollection, MusicShape, etc
Method Summary | |
---|---|
void |
finish()
Finish playing ASAP. |
void |
finishAll()
Finish playing ASAP, and tell all children to finish playing ASAP. |
java.lang.String |
getName()
|
Composable |
getParent()
Return composable that is playing this Composable. |
double |
getTimeStretch()
|
double |
getTransposition()
|
void |
halt()
Stop executing immediately. |
double |
internalRepeat(double playTime)
This will be called N times based on the setRepeat(N) This is overridden internally in JMSL to define classes like SequentialCOllection. |
java.lang.Thread |
launch(double time,
Composable parent)
Start executing musical function. |
void |
printHierarchy(int level)
Very helpful printing function: print yourself and print all your children, who in turn print themselves and all THEIR children. |
double |
repeat(double playTime)
This will be called N times based on the setRepeat(N) Override this for custom operation. |
void |
setName(java.lang.String name)
Set name to be used by toString(). |
void |
setTimeStretch(double timeStretch)
Set abstract value that can be used to stretch time durations. |
void |
setTransposition(double transposition)
Set abstract value that can be used to transpose pitches. |
double |
start(double playTime)
Setup method called once when run() begins. |
double |
stop(double playTime)
Cleanup method called once when run() ends. |
double |
timeStretch()
|
double |
transposition()
|
double |
waitForDone()
Block until execution finished. |
Methods inherited from interface com.softsynth.jmsl.Playable |
---|
play |
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
void finish()
void finishAll()
double start(double playTime) throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown if Thread.interrupt() called.double internalRepeat(double playTime) throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown if Thread.interrupt() called.double repeat(double playTime) throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown if Thread.interrupt() called.double stop(double playTime) throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown if Thread.interrupt() called.java.lang.Thread launch(double time, Composable parent)
double waitForDone() throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown if Thread.interrupt() called.void halt()
void setName(java.lang.String name)
java.lang.String getName()
void printHierarchy(int level)
void setTimeStretch(double timeStretch)
double getTimeStretch()
double timeStretch()
void setTransposition(double transposition)
double getTransposition()
double transposition()
Composable getParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |