Class RingModulator

java.lang.Object
de.pottgames.tuningfork.SoundEffectData
de.pottgames.tuningfork.RingModulator

public class RingModulator extends SoundEffectData
The ring modulator multiplies an input signal by a carrier signal in the time domain, resulting in tremolo or inharmonic effects.
  • Field Details

    • frequency

      public float frequency
      Range: 0.0 - 8000.0, Default: 440.0
      This is the frequency of the carrier signal. If the carrier signal is slowly varying (less than 20 Hz), the result is a tremolo (slow amplitude variation) effect. If the carrier signal is in the audio range, audible upper and lower sidebands begin to appear, causing an inharmonic effect. The carrier signal itself is not heard in the output.
    • highpassCutoff

      public float highpassCutoff
      Range: 0.0 - 24000.0, Default: 800.0
      This controls the cutoff frequency at which the input signal is high-pass filtered before being ring modulated . If the cutoff frequency is 0, the entire signal will be ring modulated. If the cutoff 114/144 frequency is high, very little of the signal (only those parts above the cutoff) will be ring modulated.
    • waveform

      public int waveform
      0 = sinus, 1 = saw, 2 = square
      This controls which waveform is used as the carrier signal. Traditional ring modulator and tremolo effects generally use a sinusoidal carrier. Sawtooth and square waveforms are may cause unpleasant aliasing.
  • Constructor Details

    • RingModulator

      public RingModulator()
  • Method Details