Package jmslexamples.jsyn.ancient
Class FMNoodler
java.lang.Object
com.softsynth.jmsl.MusicJob
jmslexamples.jsyn.ancient.FMNoodler
- All Implemented Interfaces:
Composable,Playable,java.lang.Runnable
public class FMNoodler extends MusicJob
FMNoodler noodles around with the frequency and modulation
parameters of an FM pair.
- Author:
- Phil Burk Included here for historical purposes only. Uses very old JSyn API. ND
-
Field Summary
Fields Modifier and Type Field Description FMPairBlasterfmPairstatic intLEFTcom.softsynth.jsyn.LineOutmyOutstatic intRIGHTFields inherited from class com.softsynth.jmsl.MusicJob
repeatCount -
Constructor Summary
-
Method Summary
Modifier and Type Method Description doublerepeat(double playTime)This will be called N times based on the setRepeat(N) Override this for custom operation.doublestart(double playTime)Setup method called once when run() begins.doublestop(double playTime)Cleanup method called once when run() begins.voidtrigger(int timestamp, double frequency)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, waitForDoneMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LEFT
public static final int LEFT- See Also:
- Constant Field Values
-
RIGHT
public static final int RIGHT- See Also:
- Constant Field Values
-
fmPair
-
myOut
public com.softsynth.jsyn.LineOut myOut
-
-
Constructor Details
-
FMNoodler
public FMNoodler(double duration, int flags) throws com.softsynth.jsyn.SynthException- Throws:
com.softsynth.jsyn.SynthException
-
FMNoodler
public FMNoodler(int duration) throws com.softsynth.jsyn.SynthException- Throws:
com.softsynth.jsyn.SynthException
-
-
Method Details
-
trigger
public void trigger(int timestamp, double frequency) throws com.softsynth.jsyn.SynthException- Throws:
com.softsynth.jsyn.SynthException
-
start
public double start(double playTime) throws java.lang.InterruptedExceptionDescription copied from class:MusicJobSetup method called once when run() begins. Override this for custom setup.- Specified by:
startin interfaceComposable- Overrides:
startin 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:MusicJobThis will be called N times based on the setRepeat(N) Override this for custom operation. Called immediately after internalRepeat() called.- Specified by:
repeatin interfaceComposable- Overrides:
repeatin 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:MusicJobCleanup method called once when run() begins. Override this for custom setup.- Specified by:
stopin interfaceComposable- Overrides:
stopin classMusicJob- Returns:
- endTime
- Throws:
java.lang.InterruptedException- thrown if Thread.interrupt() called.
-