123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the AudioEffectFilter.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_AudioEffectFilter:
- AudioEffectFilter
- =================
- **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`AudioEffectBandLimitFilter<class_AudioEffectBandLimitFilter>`, :ref:`AudioEffectBandPassFilter<class_AudioEffectBandPassFilter>`, :ref:`AudioEffectHighPassFilter<class_AudioEffectHighPassFilter>`, :ref:`AudioEffectHighShelfFilter<class_AudioEffectHighShelfFilter>`, :ref:`AudioEffectLowPassFilter<class_AudioEffectLowPassFilter>`, :ref:`AudioEffectLowShelfFilter<class_AudioEffectLowShelfFilter>`, :ref:`AudioEffectNotchFilter<class_AudioEffectNotchFilter>`
- Adds a filter to the audio bus.
- Description
- -----------
- Allows frequencies other than the :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` to pass.
- Tutorials
- ---------
- - :doc:`../tutorials/audio/audio_buses`
- Properties
- ----------
- +--------------------------------------------------+--------------------------------------------------------------+------------+
- | :ref:`float<class_float>` | :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` | ``2000.0`` |
- +--------------------------------------------------+--------------------------------------------------------------+------------+
- | :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` | :ref:`db<class_AudioEffectFilter_property_db>` | ``0`` |
- +--------------------------------------------------+--------------------------------------------------------------+------------+
- | :ref:`float<class_float>` | :ref:`gain<class_AudioEffectFilter_property_gain>` | ``1.0`` |
- +--------------------------------------------------+--------------------------------------------------------------+------------+
- | :ref:`float<class_float>` | :ref:`resonance<class_AudioEffectFilter_property_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<class_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<enum_AudioEffectFilter_FilterDB>` **db**
- +-----------+---------------+
- | *Default* | ``0`` |
- +-----------+---------------+
- | *Setter* | set_db(value) |
- +-----------+---------------+
- | *Getter* | get_db() |
- +-----------+---------------+
- ----
- .. _class_AudioEffectFilter_property_gain:
- - :ref:`float<class_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<class_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.)`
|