jmslexamples.jsyn
Class FMNoodler

java.lang.Object
  extended by com.softsynth.jmsl.MusicJob
      extended by jmslexamples.jsyn.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.


Field Summary
 FMPairBlaster fmPair
           
static int LEFT
           
 com.softsynth.jsyn.LineOut myOut
           
static int RIGHT
           
 
Fields inherited from class com.softsynth.jmsl.MusicJob
repeatCount
 
Constructor Summary
FMNoodler(double duration, int flags)
           
FMNoodler(int duration)
           
 
Method Summary
 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.
 void trigger(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, getRepeats, getStartDelay, getStartPause, getStartTime, getStopDelay, 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
 

Field Detail

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

fmPair

public FMPairBlaster fmPair

myOut

public com.softsynth.jsyn.LineOut myOut
Constructor Detail

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 Detail

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.InterruptedException
Description copied from class: MusicJob
Setup method called once when run() begins. Override this for custom setup.

Specified by:
start in interface Composable
Overrides:
start in class MusicJob
Returns:
endTime
Throws:
java.lang.InterruptedException - thrown if Thread.interrupt() called.

repeat

public double repeat(double playTime)
              throws java.lang.InterruptedException
Description 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 interface Composable
Overrides:
repeat in class MusicJob
Returns:
stopTime
Throws:
java.lang.InterruptedException - thrown if Thread.interrupt() called.

stop

public double stop(double playTime)
            throws java.lang.InterruptedException
Description copied from class: MusicJob
Cleanup method called once when run() begins. Override this for custom setup.

Specified by:
stop in interface Composable
Overrides:
stop in class MusicJob
Returns:
endTime
Throws:
java.lang.InterruptedException - thrown if Thread.interrupt() called.