Package edu.cornell.gdiac.audio
Class EffectFactory.RingModDef
java.lang.Object
edu.cornell.gdiac.audio.EffectFactory.RingModDef
- Enclosing interface:
- EffectFactory
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 Summary
FieldsModifier and TypeFieldDescriptionfloat
Sets the frequency of the carrier signal.float
Sets the frequency of the carrier signal.int
Controls which waveform is used as the carrier signal. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RING_MODULATOR_FREQUENCY
public float RING_MODULATOR_FREQUENCYSets 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_CUTOFFSets 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_WAVEFORMControls 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()
-