Package jmslexamples.jsyn.ancient
Class SeqGenDemo.SeqJob
java.lang.Object
com.softsynth.jmsl.MusicJob
jmslexamples.jsyn.ancient.SeqGenDemo.SeqJob
- All Implemented Interfaces:
Composable
,Playable
,java.lang.Runnable
- Enclosing class:
- SeqGenDemo
public class SeqGenDemo.SeqJob extends MusicJob
-
Field Summary
Fields inherited from class com.softsynth.jmsl.MusicJob
repeatCount
-
Constructor Summary
Constructors Constructor Description SeqJob()
-
Method Summary
Modifier and Type Method Description double
repeat(double playTime)
This will be called N times based on the setRepeat(N) Override this for custom operation.double
start(double playTime)
Setup method called once when run() begins.double
stop(double playTime)
Cleanup method called once when run() begins.Methods inherited from class com.softsynth.jmsl.MusicJob
add, addPlayLurker, addRepeatPlayable, addStartPlayable, addStopPlayable, advanceCurrentTime, contains, elements, finish, finishAll, getChild, getChildren, getCurrentTime, getDataTranslator, getDuration, getInstrument, getName, getParent, getPlayLurkers, getRepeatCount, getRepeatPause, getRepeatPlayables, getRepeats, getStartDelay, getStartPause, getStartPlayables, getStartTime, getStopDelay, getStopPlayables, getTimeStretch, getTransposition, halt, indexOf, insert, internalRepeat, isRunning, launch, launch, main, play, play, print, printHierarchy, printHierarchy, remove, remove, removeAll, removeAllPlayLurkers, removeAllRepeatPlayables, removeAllStartPlayables, removeAllStopPlayables, removePlayLurker, removeRepeatPlayable, removeStartPlayable, removeStopPlayable, run, setCurrentTime, setDataTranslator, setDuration, setInstrument, setName, setParent, setRepeatPause, setRepeats, setStartDelay, setStartPause, setStartTime, setStopDelay, setTimeStretch, setTransposition, size, timeStretch, transposition, waitForDone
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SeqJob
public SeqJob()
-
-
Method Details
-
start
public double start(double playTime) throws java.lang.InterruptedExceptionDescription copied from class:MusicJob
Setup method called once when run() begins. Override this for custom setup.- Specified by:
start
in interfaceComposable
- Overrides:
start
in classMusicJob
- Returns:
- endTime
- Throws:
java.lang.InterruptedException
- thrown if Thread.interrupt() called.
-
repeat
public double repeat(double playTime) throws java.lang.InterruptedExceptionDescription copied from class:MusicJob
This will be called N times based on the setRepeat(N) Override this for custom operation. Called immediately after internalRepeat() called.- Specified by:
repeat
in interfaceComposable
- Overrides:
repeat
in classMusicJob
- Returns:
- stopTime
- Throws:
java.lang.InterruptedException
- thrown if Thread.interrupt() called.
-
stop
public double stop(double playTime) throws java.lang.InterruptedExceptionDescription copied from class:MusicJob
Cleanup method called once when run() begins. Override this for custom setup.- Specified by:
stop
in interfaceComposable
- Overrides:
stop
in classMusicJob
- Returns:
- endTime
- Throws:
java.lang.InterruptedException
- thrown if Thread.interrupt() called.
-