Class Voicebox

java.lang.Object
net.oijon.algonquin.tts.trm.Voicebox

public class Voicebox extends Object
Author:
N3ther
  • Constructor Details

    • Voicebox

      public Voicebox(float intensity)
      Creates a Voicebox with a base intensity.
      Parameters:
      intensity - The amount the wave is multiplied by.
  • Method Details

    • frame

      public float frame()
      Gets the next sample of the wave.
      Returns:
      The y-axis point of the wave.
    • getFrameCount

      public int getFrameCount()
      Gets the amount of frames created.
      Returns:
      Amount of frames created.
    • getIntensity

      public float getIntensity()
      Gets the amount the wave is multiplied by.
      Returns:
      The wave's intensity.
    • setIntensity

      public void setIntensity(float intensity)
      Sets the wave intensity. This will be a controllable thing in the GUI in a future update.
      Parameters:
      intensity - The new intensity for the wave.