class_audioeffectfilter.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioEffectFilter.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioEffectFilter:
  6. AudioEffectFilter
  7. =================
  8. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **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>`
  10. Adds a filter to the audio bus.
  11. Description
  12. -----------
  13. Allows frequencies other than the :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` to pass.
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/audio/audio_buses`
  17. Properties
  18. ----------
  19. +--------------------------------------------------+--------------------------------------------------------------+------------+
  20. | :ref:`float<class_float>` | :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` | ``2000.0`` |
  21. +--------------------------------------------------+--------------------------------------------------------------+------------+
  22. | :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` | :ref:`db<class_AudioEffectFilter_property_db>` | ``0`` |
  23. +--------------------------------------------------+--------------------------------------------------------------+------------+
  24. | :ref:`float<class_float>` | :ref:`gain<class_AudioEffectFilter_property_gain>` | ``1.0`` |
  25. +--------------------------------------------------+--------------------------------------------------------------+------------+
  26. | :ref:`float<class_float>` | :ref:`resonance<class_AudioEffectFilter_property_resonance>` | ``0.5`` |
  27. +--------------------------------------------------+--------------------------------------------------------------+------------+
  28. Enumerations
  29. ------------
  30. .. _enum_AudioEffectFilter_FilterDB:
  31. .. _class_AudioEffectFilter_constant_FILTER_6DB:
  32. .. _class_AudioEffectFilter_constant_FILTER_12DB:
  33. .. _class_AudioEffectFilter_constant_FILTER_18DB:
  34. .. _class_AudioEffectFilter_constant_FILTER_24DB:
  35. enum **FilterDB**:
  36. - **FILTER_6DB** = **0**
  37. - **FILTER_12DB** = **1**
  38. - **FILTER_18DB** = **2**
  39. - **FILTER_24DB** = **3**
  40. Property Descriptions
  41. ---------------------
  42. .. _class_AudioEffectFilter_property_cutoff_hz:
  43. - :ref:`float<class_float>` **cutoff_hz**
  44. +-----------+-------------------+
  45. | *Default* | ``2000.0`` |
  46. +-----------+-------------------+
  47. | *Setter* | set_cutoff(value) |
  48. +-----------+-------------------+
  49. | *Getter* | get_cutoff() |
  50. +-----------+-------------------+
  51. Threshold frequency for the filter, in Hz.
  52. ----
  53. .. _class_AudioEffectFilter_property_db:
  54. - :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **db**
  55. +-----------+---------------+
  56. | *Default* | ``0`` |
  57. +-----------+---------------+
  58. | *Setter* | set_db(value) |
  59. +-----------+---------------+
  60. | *Getter* | get_db() |
  61. +-----------+---------------+
  62. ----
  63. .. _class_AudioEffectFilter_property_gain:
  64. - :ref:`float<class_float>` **gain**
  65. +-----------+-----------------+
  66. | *Default* | ``1.0`` |
  67. +-----------+-----------------+
  68. | *Setter* | set_gain(value) |
  69. +-----------+-----------------+
  70. | *Getter* | get_gain() |
  71. +-----------+-----------------+
  72. Gain amount of the frequencies after the filter.
  73. ----
  74. .. _class_AudioEffectFilter_property_resonance:
  75. - :ref:`float<class_float>` **resonance**
  76. +-----------+----------------------+
  77. | *Default* | ``0.5`` |
  78. +-----------+----------------------+
  79. | *Setter* | set_resonance(value) |
  80. +-----------+----------------------+
  81. | *Getter* | get_resonance() |
  82. +-----------+----------------------+
  83. Amount of boost in the frequency range near the cutoff frequency.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`