Enum Class Control.waveForm

java.lang.Object
java.lang.Enum<Control.waveForm>
eu.bandm.music.applications.myKdF.Control.waveForm
All Implemented Interfaces:
Serializable, Comparable<Control.waveForm>, Constable
Enclosing class:
Control

static enum Control.waveForm extends Enum<Control.waveForm>
Selectors for the currently supported sound-synthesis wave forms.
  • Enum Constant Details

    • sine

      public static final Control.waveForm sine
      Sine wave. Rather boring with long notes, but nice with staccato.
    • square

      public static final Control.waveForm square
      Square wave.
    • saw

      public static final Control.waveForm saw
      Saw wave. Souds a bit like strings.
    • triangle

      public static final Control.waveForm triangle
      Triangle wave. With an appropriate envelope it can sound like metal.
  • Method Details

    • values

      public static Control.waveForm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Control.waveForm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null