class_audioeffectdelay.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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/AudioEffectDelay.xml.
  6. .. _class_AudioEffectDelay:
  7. AudioEffectDelay
  8. ================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Adds a delay audio effect to an audio bus. Plays input signal back after a period of time.
  11. Two tap delay and feedback options.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Plays input signal back after a period of time. The delayed signal may be played back multiple times to create the sound of a repeating, decaying echo. Delay effects range from a subtle echo effect to a pronounced blending of previous sounds with new sounds.
  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:`dry<class_AudioEffectDelay_property_dry>` | ``1.0`` |
  27. +---------------------------+-----------------------------------------------------------------------------+-------------+
  28. | :ref:`bool<class_bool>` | :ref:`feedback_active<class_AudioEffectDelay_property_feedback_active>` | ``false`` |
  29. +---------------------------+-----------------------------------------------------------------------------+-------------+
  30. | :ref:`float<class_float>` | :ref:`feedback_delay_ms<class_AudioEffectDelay_property_feedback_delay_ms>` | ``340.0`` |
  31. +---------------------------+-----------------------------------------------------------------------------+-------------+
  32. | :ref:`float<class_float>` | :ref:`feedback_level_db<class_AudioEffectDelay_property_feedback_level_db>` | ``-6.0`` |
  33. +---------------------------+-----------------------------------------------------------------------------+-------------+
  34. | :ref:`float<class_float>` | :ref:`feedback_lowpass<class_AudioEffectDelay_property_feedback_lowpass>` | ``16000.0`` |
  35. +---------------------------+-----------------------------------------------------------------------------+-------------+
  36. | :ref:`bool<class_bool>` | :ref:`tap1_active<class_AudioEffectDelay_property_tap1_active>` | ``true`` |
  37. +---------------------------+-----------------------------------------------------------------------------+-------------+
  38. | :ref:`float<class_float>` | :ref:`tap1_delay_ms<class_AudioEffectDelay_property_tap1_delay_ms>` | ``250.0`` |
  39. +---------------------------+-----------------------------------------------------------------------------+-------------+
  40. | :ref:`float<class_float>` | :ref:`tap1_level_db<class_AudioEffectDelay_property_tap1_level_db>` | ``-6.0`` |
  41. +---------------------------+-----------------------------------------------------------------------------+-------------+
  42. | :ref:`float<class_float>` | :ref:`tap1_pan<class_AudioEffectDelay_property_tap1_pan>` | ``0.2`` |
  43. +---------------------------+-----------------------------------------------------------------------------+-------------+
  44. | :ref:`bool<class_bool>` | :ref:`tap2_active<class_AudioEffectDelay_property_tap2_active>` | ``true`` |
  45. +---------------------------+-----------------------------------------------------------------------------+-------------+
  46. | :ref:`float<class_float>` | :ref:`tap2_delay_ms<class_AudioEffectDelay_property_tap2_delay_ms>` | ``500.0`` |
  47. +---------------------------+-----------------------------------------------------------------------------+-------------+
  48. | :ref:`float<class_float>` | :ref:`tap2_level_db<class_AudioEffectDelay_property_tap2_level_db>` | ``-12.0`` |
  49. +---------------------------+-----------------------------------------------------------------------------+-------------+
  50. | :ref:`float<class_float>` | :ref:`tap2_pan<class_AudioEffectDelay_property_tap2_pan>` | ``-0.4`` |
  51. +---------------------------+-----------------------------------------------------------------------------+-------------+
  52. .. rst-class:: classref-section-separator
  53. ----
  54. .. rst-class:: classref-descriptions-group
  55. Property Descriptions
  56. ---------------------
  57. .. _class_AudioEffectDelay_property_dry:
  58. .. rst-class:: classref-property
  59. :ref:`float<class_float>` **dry** = ``1.0``
  60. .. rst-class:: classref-property-setget
  61. - void **set_dry** **(** :ref:`float<class_float>` value **)**
  62. - :ref:`float<class_float>` **get_dry** **(** **)**
  63. Output percent of original sound. At 0, only delayed sounds are output. Value can range from 0 to 1.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_AudioEffectDelay_property_feedback_active:
  67. .. rst-class:: classref-property
  68. :ref:`bool<class_bool>` **feedback_active** = ``false``
  69. .. rst-class:: classref-property-setget
  70. - void **set_feedback_active** **(** :ref:`bool<class_bool>` value **)**
  71. - :ref:`bool<class_bool>` **is_feedback_active** **(** **)**
  72. If ``true``, feedback is enabled.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_AudioEffectDelay_property_feedback_delay_ms:
  76. .. rst-class:: classref-property
  77. :ref:`float<class_float>` **feedback_delay_ms** = ``340.0``
  78. .. rst-class:: classref-property-setget
  79. - void **set_feedback_delay_ms** **(** :ref:`float<class_float>` value **)**
  80. - :ref:`float<class_float>` **get_feedback_delay_ms** **(** **)**
  81. Feedback delay time in milliseconds.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_AudioEffectDelay_property_feedback_level_db:
  85. .. rst-class:: classref-property
  86. :ref:`float<class_float>` **feedback_level_db** = ``-6.0``
  87. .. rst-class:: classref-property-setget
  88. - void **set_feedback_level_db** **(** :ref:`float<class_float>` value **)**
  89. - :ref:`float<class_float>` **get_feedback_level_db** **(** **)**
  90. Sound level for feedback.
  91. .. rst-class:: classref-item-separator
  92. ----
  93. .. _class_AudioEffectDelay_property_feedback_lowpass:
  94. .. rst-class:: classref-property
  95. :ref:`float<class_float>` **feedback_lowpass** = ``16000.0``
  96. .. rst-class:: classref-property-setget
  97. - void **set_feedback_lowpass** **(** :ref:`float<class_float>` value **)**
  98. - :ref:`float<class_float>` **get_feedback_lowpass** **(** **)**
  99. Low-pass filter for feedback, in Hz. Frequencies below this value are filtered out of the source signal.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_AudioEffectDelay_property_tap1_active:
  103. .. rst-class:: classref-property
  104. :ref:`bool<class_bool>` **tap1_active** = ``true``
  105. .. rst-class:: classref-property-setget
  106. - void **set_tap1_active** **(** :ref:`bool<class_bool>` value **)**
  107. - :ref:`bool<class_bool>` **is_tap1_active** **(** **)**
  108. If ``true``, the first tap will be enabled.
  109. .. rst-class:: classref-item-separator
  110. ----
  111. .. _class_AudioEffectDelay_property_tap1_delay_ms:
  112. .. rst-class:: classref-property
  113. :ref:`float<class_float>` **tap1_delay_ms** = ``250.0``
  114. .. rst-class:: classref-property-setget
  115. - void **set_tap1_delay_ms** **(** :ref:`float<class_float>` value **)**
  116. - :ref:`float<class_float>` **get_tap1_delay_ms** **(** **)**
  117. First tap delay time in milliseconds.
  118. .. rst-class:: classref-item-separator
  119. ----
  120. .. _class_AudioEffectDelay_property_tap1_level_db:
  121. .. rst-class:: classref-property
  122. :ref:`float<class_float>` **tap1_level_db** = ``-6.0``
  123. .. rst-class:: classref-property-setget
  124. - void **set_tap1_level_db** **(** :ref:`float<class_float>` value **)**
  125. - :ref:`float<class_float>` **get_tap1_level_db** **(** **)**
  126. Sound level for the first tap.
  127. .. rst-class:: classref-item-separator
  128. ----
  129. .. _class_AudioEffectDelay_property_tap1_pan:
  130. .. rst-class:: classref-property
  131. :ref:`float<class_float>` **tap1_pan** = ``0.2``
  132. .. rst-class:: classref-property-setget
  133. - void **set_tap1_pan** **(** :ref:`float<class_float>` value **)**
  134. - :ref:`float<class_float>` **get_tap1_pan** **(** **)**
  135. Pan position for the first tap. Value can range from -1 (fully left) to 1 (fully right).
  136. .. rst-class:: classref-item-separator
  137. ----
  138. .. _class_AudioEffectDelay_property_tap2_active:
  139. .. rst-class:: classref-property
  140. :ref:`bool<class_bool>` **tap2_active** = ``true``
  141. .. rst-class:: classref-property-setget
  142. - void **set_tap2_active** **(** :ref:`bool<class_bool>` value **)**
  143. - :ref:`bool<class_bool>` **is_tap2_active** **(** **)**
  144. If ``true``, the second tap will be enabled.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _class_AudioEffectDelay_property_tap2_delay_ms:
  148. .. rst-class:: classref-property
  149. :ref:`float<class_float>` **tap2_delay_ms** = ``500.0``
  150. .. rst-class:: classref-property-setget
  151. - void **set_tap2_delay_ms** **(** :ref:`float<class_float>` value **)**
  152. - :ref:`float<class_float>` **get_tap2_delay_ms** **(** **)**
  153. Second tap delay time in milliseconds.
  154. .. rst-class:: classref-item-separator
  155. ----
  156. .. _class_AudioEffectDelay_property_tap2_level_db:
  157. .. rst-class:: classref-property
  158. :ref:`float<class_float>` **tap2_level_db** = ``-12.0``
  159. .. rst-class:: classref-property-setget
  160. - void **set_tap2_level_db** **(** :ref:`float<class_float>` value **)**
  161. - :ref:`float<class_float>` **get_tap2_level_db** **(** **)**
  162. Sound level for the second tap.
  163. .. rst-class:: classref-item-separator
  164. ----
  165. .. _class_AudioEffectDelay_property_tap2_pan:
  166. .. rst-class:: classref-property
  167. :ref:`float<class_float>` **tap2_pan** = ``-0.4``
  168. .. rst-class:: classref-property-setget
  169. - void **set_tap2_pan** **(** :ref:`float<class_float>` value **)**
  170. - :ref:`float<class_float>` **get_tap2_pan** **(** **)**
  171. Pan position for the second tap. Value can range from -1 (fully left) to 1 (fully right).
  172. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  173. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  174. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  175. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  176. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  177. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  178. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`