Class FrequencyShifter
java.lang.Object
de.pottgames.tuningfork.SoundEffectData
de.pottgames.tuningfork.FrequencyShifter
The frequency shifter is a single-sideband modulator, which translates all the component frequencies of the input signal by an equal amount. Unlike the pitch
shifter, which attempts to maintain harmonic relationships in the signal, the frequency shifter disrupts harmonic relationships and radically alters the
sonic qualities of the signal. Applications of the frequency shifter include the creation of bizarre distortion, phaser, stereo widening and rotating speaker
effects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatRange: 0.0 - 24000.0, Default: 0.0
This is the carrier frequency.int0 = down, 1 = up, 2 = off
These select which internal signals are added together to produce the output.int0 = down, 1 = up, 2 = off
These select which internal signals are added together to produce the output. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
frequency
public float frequencyRange: 0.0 - 24000.0, Default: 0.0
This is the carrier frequency. For carrier frequencies below the audible range, the single-sideband modulator may produce phaser effects, spatial effects or a slight pitch-shift. As the carrier frequency increases, the timbre of the sound is affected; a piano or guitar note becomes like a bell's chime, and a human voice sounds extraterrestrial! -
leftDirection
public int leftDirection0 = down, 1 = up, 2 = off
These select which internal signals are added together to produce the output. Different combinations of values will produce slightly different tonal and spatial effects. -
rightDirection
public int rightDirection0 = down, 1 = up, 2 = off
These select which internal signals are added together to produce the output. Different combinations of values will produce slightly different tonal and spatial effects.
-
-
Constructor Details
-
FrequencyShifter
public FrequencyShifter()
-
-
Method Details
-
apply
protected void apply(int effectId) - Specified by:
applyin classSoundEffectData
-
hashCode
-
equals
-
toString
-