class_audioeffectfilter.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioEffectFilter.xml.
  6. .. _class_AudioEffectFilter:
  7. AudioEffectFilter
  8. =================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **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>`
  11. Adds a filter to the audio bus.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Allows frequencies other than the :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` to pass.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +--------------------------------------------------+--------------------------------------------------------------+------------+
  26. | :ref:`float<class_float>` | :ref:`cutoff_hz<class_AudioEffectFilter_property_cutoff_hz>` | ``2000.0`` |
  27. +--------------------------------------------------+--------------------------------------------------------------+------------+
  28. | :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` | :ref:`db<class_AudioEffectFilter_property_db>` | ``0`` |
  29. +--------------------------------------------------+--------------------------------------------------------------+------------+
  30. | :ref:`float<class_float>` | :ref:`gain<class_AudioEffectFilter_property_gain>` | ``1.0`` |
  31. +--------------------------------------------------+--------------------------------------------------------------+------------+
  32. | :ref:`float<class_float>` | :ref:`resonance<class_AudioEffectFilter_property_resonance>` | ``0.5`` |
  33. +--------------------------------------------------+--------------------------------------------------------------+------------+
  34. .. rst-class:: classref-section-separator
  35. ----
  36. .. rst-class:: classref-descriptions-group
  37. Enumerations
  38. ------------
  39. .. _enum_AudioEffectFilter_FilterDB:
  40. .. rst-class:: classref-enumeration
  41. enum **FilterDB**: :ref:`🔗<enum_AudioEffectFilter_FilterDB>`
  42. .. _class_AudioEffectFilter_constant_FILTER_6DB:
  43. .. rst-class:: classref-enumeration-constant
  44. :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **FILTER_6DB** = ``0``
  45. Cutting off at 6dB per octave.
  46. .. _class_AudioEffectFilter_constant_FILTER_12DB:
  47. .. rst-class:: classref-enumeration-constant
  48. :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **FILTER_12DB** = ``1``
  49. Cutting off at 12dB per octave.
  50. .. _class_AudioEffectFilter_constant_FILTER_18DB:
  51. .. rst-class:: classref-enumeration-constant
  52. :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **FILTER_18DB** = ``2``
  53. Cutting off at 18dB per octave.
  54. .. _class_AudioEffectFilter_constant_FILTER_24DB:
  55. .. rst-class:: classref-enumeration-constant
  56. :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **FILTER_24DB** = ``3``
  57. Cutting off at 24dB per octave.
  58. .. rst-class:: classref-section-separator
  59. ----
  60. .. rst-class:: classref-descriptions-group
  61. Property Descriptions
  62. ---------------------
  63. .. _class_AudioEffectFilter_property_cutoff_hz:
  64. .. rst-class:: classref-property
  65. :ref:`float<class_float>` **cutoff_hz** = ``2000.0`` :ref:`🔗<class_AudioEffectFilter_property_cutoff_hz>`
  66. .. rst-class:: classref-property-setget
  67. - |void| **set_cutoff**\ (\ value\: :ref:`float<class_float>`\ )
  68. - :ref:`float<class_float>` **get_cutoff**\ (\ )
  69. Threshold frequency for the filter, in Hz.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_AudioEffectFilter_property_db:
  73. .. rst-class:: classref-property
  74. :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **db** = ``0`` :ref:`🔗<class_AudioEffectFilter_property_db>`
  75. .. rst-class:: classref-property-setget
  76. - |void| **set_db**\ (\ value\: :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>`\ )
  77. - :ref:`FilterDB<enum_AudioEffectFilter_FilterDB>` **get_db**\ (\ )
  78. Steepness of the cutoff curve in dB per octave, also known as the order of the filter. Higher orders have a more aggressive cutoff.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_AudioEffectFilter_property_gain:
  82. .. rst-class:: classref-property
  83. :ref:`float<class_float>` **gain** = ``1.0`` :ref:`🔗<class_AudioEffectFilter_property_gain>`
  84. .. rst-class:: classref-property-setget
  85. - |void| **set_gain**\ (\ value\: :ref:`float<class_float>`\ )
  86. - :ref:`float<class_float>` **get_gain**\ (\ )
  87. Gain amount of the frequencies after the filter.
  88. .. rst-class:: classref-item-separator
  89. ----
  90. .. _class_AudioEffectFilter_property_resonance:
  91. .. rst-class:: classref-property
  92. :ref:`float<class_float>` **resonance** = ``0.5`` :ref:`🔗<class_AudioEffectFilter_property_resonance>`
  93. .. rst-class:: classref-property-setget
  94. - |void| **set_resonance**\ (\ value\: :ref:`float<class_float>`\ )
  95. - :ref:`float<class_float>` **get_resonance**\ (\ )
  96. Amount of boost in the frequency range near the cutoff frequency.
  97. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  98. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  99. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  100. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  101. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  102. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  103. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  104. .. |void| replace:: :abbr:`void (No return value.)`