:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioEffectFilter.xml. .. _class_AudioEffectFilter: AudioEffectFilter ================= **Inherits:** :ref:`AudioEffect` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`AudioEffectBandLimitFilter`, :ref:`AudioEffectBandPassFilter`, :ref:`AudioEffectHighPassFilter`, :ref:`AudioEffectHighShelfFilter`, :ref:`AudioEffectLowPassFilter`, :ref:`AudioEffectLowShelfFilter`, :ref:`AudioEffectNotchFilter` Adds a filter to the audio bus. Description ----------- Allows frequencies other than the :ref:`cutoff_hz` to pass. Tutorials --------- - :doc:`Audio buses <../tutorials/audio/audio_buses>` Properties ---------- +--------------------------------------------------+--------------------------------------------------------------+------------+ | :ref:`float` | :ref:`cutoff_hz` | ``2000.0`` | +--------------------------------------------------+--------------------------------------------------------------+------------+ | :ref:`FilterDB` | :ref:`db` | ``0`` | +--------------------------------------------------+--------------------------------------------------------------+------------+ | :ref:`float` | :ref:`gain` | ``1.0`` | +--------------------------------------------------+--------------------------------------------------------------+------------+ | :ref:`float` | :ref:`resonance` | ``0.5`` | +--------------------------------------------------+--------------------------------------------------------------+------------+ Enumerations ------------ .. _enum_AudioEffectFilter_FilterDB: .. _class_AudioEffectFilter_constant_FILTER_6DB: .. _class_AudioEffectFilter_constant_FILTER_12DB: .. _class_AudioEffectFilter_constant_FILTER_18DB: .. _class_AudioEffectFilter_constant_FILTER_24DB: enum **FilterDB**: - **FILTER_6DB** = **0** - **FILTER_12DB** = **1** - **FILTER_18DB** = **2** - **FILTER_24DB** = **3** Property Descriptions --------------------- .. _class_AudioEffectFilter_property_cutoff_hz: - :ref:`float` **cutoff_hz** +-----------+-------------------+ | *Default* | ``2000.0`` | +-----------+-------------------+ | *Setter* | set_cutoff(value) | +-----------+-------------------+ | *Getter* | get_cutoff() | +-----------+-------------------+ Threshold frequency for the filter, in Hz. ---- .. _class_AudioEffectFilter_property_db: - :ref:`FilterDB` **db** +-----------+---------------+ | *Default* | ``0`` | +-----------+---------------+ | *Setter* | set_db(value) | +-----------+---------------+ | *Getter* | get_db() | +-----------+---------------+ ---- .. _class_AudioEffectFilter_property_gain: - :ref:`float` **gain** +-----------+-----------------+ | *Default* | ``1.0`` | +-----------+-----------------+ | *Setter* | set_gain(value) | +-----------+-----------------+ | *Getter* | get_gain() | +-----------+-----------------+ Gain amount of the frequencies after the filter. ---- .. _class_AudioEffectFilter_property_resonance: - :ref:`float` **resonance** +-----------+----------------------+ | *Default* | ``0.5`` | +-----------+----------------------+ | *Setter* | set_resonance(value) | +-----------+----------------------+ | *Getter* | get_resonance() | +-----------+----------------------+ Amount of boost in the frequency range near the cutoff frequency. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`