Class FrequencyShifter

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

public class FrequencyShifter extends SoundEffectData
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

    Fields
    Modifier and Type
    Field
    Description
    float
    Range: 0.0 - 24000.0, Default: 0.0
    This is the carrier frequency.
    int
    0 = down, 1 = up, 2 = off
    These select which internal signals are added together to produce the output.
    int
    0 = down, 1 = up, 2 = off
    These select which internal signals are added together to produce the output.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(int effectId)
     
    boolean
     
    int
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • frequency

      public float frequency
      Range: 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 leftDirection
      0 = 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 rightDirection
      0 = 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