Enum BiquadFilterType

java.lang.Object
java.lang.Enum<BiquadFilterType>
com.codename1.media.audio.BiquadFilterType
All Implemented Interfaces:
Comparable<BiquadFilterType>

public enum BiquadFilterType extends Enum<BiquadFilterType>
The response of a BiquadFilterNode. The coefficient formulas are the ones the Web Audio specification gives, derived from the Audio EQ Cookbook.
  • Enum Constant Details

    • LOWPASS

      public static final BiquadFilterType LOWPASS
      Second order low pass; Q is the resonance in dB.
    • HIGHPASS

      public static final BiquadFilterType HIGHPASS
      Second order high pass; Q is the resonance in dB.
    • BANDPASS

      public static final BiquadFilterType BANDPASS
      Second order band pass around frequency; Q sets the width.
    • LOWSHELF

      public static final BiquadFilterType LOWSHELF
      Boosts or cuts frequencies below frequency by gain dB.
    • HIGHSHELF

      public static final BiquadFilterType HIGHSHELF
      Boosts or cuts frequencies above frequency by gain dB.
    • PEAKING

      public static final BiquadFilterType PEAKING
      Boosts or cuts a band around frequency by gain dB; Q sets the width.
    • NOTCH

      public static final BiquadFilterType NOTCH
      Rejects a band around frequency; Q sets the width.
    • ALLPASS

      public static final BiquadFilterType ALLPASS
      Passes every frequency and shifts phase around frequency.
  • Method Details

    • values

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

      public static BiquadFilterType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null