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 Details

  • 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.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.