Package wellen.dsp

Class FMSynthesis

java.lang.Object
wellen.dsp.FMSynthesis
All Implemented Interfaces:
DSPNodeOutput

public class FMSynthesis extends Object implements DSPNodeOutput
FM synthesis with two oscillators, carrier ( e.g fundamental or *pitch* ) and modulator.

formula taken from [Anders Øland & Roger B. Dannenberg: FM Synthesis -- Introduction to Computer Music Carnegie Mellon University](http://www.cs.cmu.edu/~music/icm-online/readings/fm-synthesis/fm_synthesis.pdf)

 
 f(t) = A sin(2πCt + D sin(2πMt))
 A :: amplitude
 Ct :: carrier
 Mt :: modulator
 D :: modulation depth
 
 
  • Constructor Details

    • FMSynthesis

      public FMSynthesis(Wavetable pCarrier, Wavetable pModulator)
    • FMSynthesis

      public FMSynthesis()
  • Method Details

    • get_modulator

      public Wavetable get_modulator()
    • set_modulator

      public void set_modulator(Wavetable pModulator)
    • get_carrier

      public Wavetable get_carrier()
    • set_carrier

      public void set_carrier(Wavetable pCarrier)
    • get_amplitude

      public float get_amplitude()
    • set_amplitude

      public void set_amplitude(float pAmplitude)
    • get_modulation_depth

      public float get_modulation_depth()
    • set_modulation_depth

      public void set_modulation_depth(float pModulationDepth)
    • output

      public float output()
      Description copied from interface: DSPNodeOutput
      returns the output signal.
      Specified by:
      output in interface DSPNodeOutput
      Returns:
      output signal