|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.jmsl.MusicJob
com.softsynth.jmsl.MusicList
public class MusicList
MusicList
A MusicList's children are InstrumentPlayable's.
InstrumentPlayables implement public double play(double playTime, Composable parent,Instrument ins)
method which returns an updated playTime (such as playTime + parent.getTimeStretch * duration)
A MusicList's Instrument gets handed to each of its children as it enumerates them over time.
InstrumentPlayable| Field Summary |
|---|
| Fields inherited from class com.softsynth.jmsl.MusicJob |
|---|
repeatCount |
| Constructor Summary | |
|---|---|
MusicList()
|
|
| Method Summary | |
|---|---|
void |
add(InstrumentPlayable p)
|
void |
finishAll()
Doesn't contain Composable, so cannot propagate finishAll() to children, just calls finish() on itself instead |
InstrumentPlayable |
get(int i)
return the InstrumentPlayable at position i |
java.util.Vector |
getChildren()
|
double |
internalRepeat(double playTime)
Execute all elements in list with instrument. |
static void |
main(java.lang.String[] args)
Add some ad hoc InstrumentPlayable's to a MusicList and play it with the default (printing) Instrument. |
double |
start(double startTime)
open() Instrument and return startTime |
double |
stop(double stopTime)
close() Instrument and return stopTime |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MusicList()
| Method Detail |
|---|
public java.util.Vector getChildren()
getChildren in class MusicJobpublic void add(InstrumentPlayable p)
public InstrumentPlayable get(int i)
public double start(double startTime)
throws java.lang.InterruptedException
start in interface Composablestart in class MusicJobjava.lang.InterruptedException - thrown if Thread.interrupt() called.
public double stop(double stopTime)
throws java.lang.InterruptedException
stop in interface Composablestop in class MusicJobjava.lang.InterruptedException - thrown if Thread.interrupt() called.public void finishAll()
finishAll in interface ComposablefinishAll in class MusicJob
public double internalRepeat(double playTime)
throws java.lang.InterruptedException
internalRepeat in interface ComposableinternalRepeat in class MusicJobjava.lang.InterruptedException - thrown if Thread.interrupt() called.public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||