Class VocalMorpher

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

public class VocalMorpher extends SoundEffectData
The vocal morpher consists of a pair of 4-band formant filters, used to impose vocal tract effects upon the input signal. If the input signal is a broadband sound such as pink noise or a car engine, the vocal morpher can provide a wide variety of filtering effects. A low-frequency oscillator can be used to morph the filtering effect between two different phonemes. The vocal morpher is not necessarily intended for use on voice signals; it is primarily intended for pitched noise effects, vocal-like wind effects, etc.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Range: 0 - 29, Default: 0
    If both parameters are set to the same phoneme, that determines the filtering effect that will be heard.
    int
    Range: -24 - 24, Default: 0
    These are used to adjust the pitch of phoneme filters A and B in 1-semitone increments.
    int
    Range: 0 - 29, Default: 10
    If both parameters are set to the same phoneme, that determines the filtering effect that will be heard.
    int
    Range: -24 - 24, Default: 0
    These are used to adjust the pitch of phoneme filters A and B in 1-semitone increments.
    float
    Range: 0.0 - 10.0, Default: 1.41
    This controls the frequency of the low-frequency oscillator used to morph between the two phoneme filters
    int
    0 = sinus, 1 = triangle, 2 = saw
    This controls the shape of the low-frequency oscillator used to morph between the two phoneme filters.
  • 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

    • phonemea

      public int phonemea
      Range: 0 - 29, Default: 0
      If both parameters are set to the same phoneme, that determines the filtering effect that will be heard. If these two parameters are set to different phonemes, the filtering effect will morph between the two settings at a rate specified by AL_VOCAL_MORPHER_RATE.
    • phonemeb

      public int phonemeb
      Range: 0 - 29, Default: 10
      If both parameters are set to the same phoneme, that determines the filtering effect that will be heard. If these two parameters are set to different phonemes, the filtering effect will morph between the two settings at a rate specified by AL_VOCAL_MORPHER_RATE.
    • phonemeaCoarseTuning

      public int phonemeaCoarseTuning
      Range: -24 - 24, Default: 0
      These are used to adjust the pitch of phoneme filters A and B in 1-semitone increments.
    • phonemebCoarseTuning

      public int phonemebCoarseTuning
      Range: -24 - 24, Default: 0
      These are used to adjust the pitch of phoneme filters A and B in 1-semitone increments.
    • waveform

      public int waveform
      0 = sinus, 1 = triangle, 2 = saw
      This controls the shape of the low-frequency oscillator used to morph between the two phoneme filters. By selecting a saw tooth wave and a slow AL_VOCAL_MORPHER_RATE, one can create a filtering effect that slowly increases or decreases in pitch (depending on which of the two phoneme filters A or B is perceived as being higher-pitched).
    • rate

      public float rate
      Range: 0.0 - 10.0, Default: 1.41
      This controls the frequency of the low-frequency oscillator used to morph between the two phoneme filters
  • Constructor Details

    • VocalMorpher

      public VocalMorpher()
  • Method Details