Class 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
      float frame()
      Gets the next sample of the wave.
      int getFrameCount()
      Gets the amount of frames created.
      float getIntensity()
      Gets the amount the wave is multiplied by.
      void setIntensity​(float intensity)
      Sets the wave intensity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Voicebox

        public Voicebox​(float intensity)
        Creates a Voicebox with a base intensity.
        Parameters:
        intensity - The amount the wave is multiplied by.
    • 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.