Package net.oijon.algonquin.tts.trm
Class Voicebox
- java.lang.Object
-
- net.oijon.algonquin.tts.trm.Voicebox
-
public class Voicebox extends java.lang.Object- Author:
- N3ther
-
-
Constructor Summary
Constructors Constructor Description Voicebox(float intensity)Creates a Voicebox with a base intensity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatframe()Gets the next sample of the wave.intgetFrameCount()Gets the amount of frames created.floatgetIntensity()Gets the amount the wave is multiplied by.voidsetIntensity(float intensity)Sets the wave intensity.
-
-
-
Method Detail
-
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.
-
-