Package net.oijon.algonquin.tts.trm
Class Voicebox
java.lang.Object
net.oijon.algonquin.tts.trm.Voicebox
- Author:
- N3ther
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatframe()Gets the next sample of the wave.intGets the amount of frames created.floatGets the amount the wave is multiplied by.voidsetIntensity(float intensity) Sets the wave intensity.
-
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.
-