Class EffectFactory.RingModDef

java.lang.Object
edu.cornell.gdiac.audio.EffectFactory.RingModDef
Enclosing interface:
EffectFactory

public static class EffectFactory.RingModDef extends Object
This class contains definitions for constructing a Ring Modulator object

The ring modulator multiplies an input signal by a carrier signal in the time domain, resulting in tremolo or inharmonic effects.

Edit properties of a RingModDef object then use EffectFactory.createRingMod() or EffectFactory.updateRingMod(EffectFilter, RingModDef) )} to transfer properties from RingModDef to the effect object.

  • Field Details

    • RING_MODULATOR_FREQUENCY

      public float RING_MODULATOR_FREQUENCY
      Sets 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.
      • MAX: 8000.0f
      • MIN: 0.0f
    • RING_MODULATOR_HIGHPASS_CUTOFF

      public float RING_MODULATOR_HIGHPASS_CUTOFF
      Sets 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.
      • MAX: 8000.0f
      • MIN: 0.0f
    • RING_MODULATOR_WAVEFORM

      public int RING_MODULATOR_WAVEFORM
      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.
      • 0: Sin
      • 1: Triangle
      • 2: Square
  • Constructor Details

    • RingModDef

      public RingModDef()