class_audioeffectdelay.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/AudioEffectDelay.xml.
  6. .. _class_AudioEffectDelay:
  7. AudioEffectDelay
  8. ================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :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-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------+-----------------------------------------------------------------------------+-------------+
  22. | :ref:`float<class_float>` | :ref:`dry<class_AudioEffectDelay_property_dry>` | ``1.0`` |
  23. +---------------------------+-----------------------------------------------------------------------------+-------------+
  24. | :ref:`bool<class_bool>` | :ref:`feedback/active<class_AudioEffectDelay_property_feedback/active>` | ``false`` |
  25. +---------------------------+-----------------------------------------------------------------------------+-------------+
  26. | :ref:`float<class_float>` | :ref:`feedback/delay_ms<class_AudioEffectDelay_property_feedback/delay_ms>` | ``340.0`` |
  27. +---------------------------+-----------------------------------------------------------------------------+-------------+
  28. | :ref:`float<class_float>` | :ref:`feedback/level_db<class_AudioEffectDelay_property_feedback/level_db>` | ``-6.0`` |
  29. +---------------------------+-----------------------------------------------------------------------------+-------------+
  30. | :ref:`float<class_float>` | :ref:`feedback/lowpass<class_AudioEffectDelay_property_feedback/lowpass>` | ``16000.0`` |
  31. +---------------------------+-----------------------------------------------------------------------------+-------------+
  32. | :ref:`bool<class_bool>` | :ref:`tap1/active<class_AudioEffectDelay_property_tap1/active>` | ``true`` |
  33. +---------------------------+-----------------------------------------------------------------------------+-------------+
  34. | :ref:`float<class_float>` | :ref:`tap1/delay_ms<class_AudioEffectDelay_property_tap1/delay_ms>` | ``250.0`` |
  35. +---------------------------+-----------------------------------------------------------------------------+-------------+
  36. | :ref:`float<class_float>` | :ref:`tap1/level_db<class_AudioEffectDelay_property_tap1/level_db>` | ``-6.0`` |
  37. +---------------------------+-----------------------------------------------------------------------------+-------------+
  38. | :ref:`float<class_float>` | :ref:`tap1/pan<class_AudioEffectDelay_property_tap1/pan>` | ``0.2`` |
  39. +---------------------------+-----------------------------------------------------------------------------+-------------+
  40. | :ref:`bool<class_bool>` | :ref:`tap2/active<class_AudioEffectDelay_property_tap2/active>` | ``true`` |
  41. +---------------------------+-----------------------------------------------------------------------------+-------------+
  42. | :ref:`float<class_float>` | :ref:`tap2/delay_ms<class_AudioEffectDelay_property_tap2/delay_ms>` | ``500.0`` |
  43. +---------------------------+-----------------------------------------------------------------------------+-------------+
  44. | :ref:`float<class_float>` | :ref:`tap2/level_db<class_AudioEffectDelay_property_tap2/level_db>` | ``-12.0`` |
  45. +---------------------------+-----------------------------------------------------------------------------+-------------+
  46. | :ref:`float<class_float>` | :ref:`tap2/pan<class_AudioEffectDelay_property_tap2/pan>` | ``-0.4`` |
  47. +---------------------------+-----------------------------------------------------------------------------+-------------+
  48. .. rst-class:: classref-section-separator
  49. ----
  50. .. rst-class:: classref-descriptions-group
  51. Property Descriptions
  52. ---------------------
  53. .. _class_AudioEffectDelay_property_dry:
  54. .. rst-class:: classref-property
  55. :ref:`float<class_float>` **dry** = ``1.0``
  56. .. rst-class:: classref-property-setget
  57. - void **set_dry** **(** :ref:`float<class_float>` value **)**
  58. - :ref:`float<class_float>` **get_dry** **(** **)**
  59. Output percent of original sound. At 0, only delayed sounds are output. Value can range from 0 to 1.
  60. .. rst-class:: classref-item-separator
  61. ----
  62. .. _class_AudioEffectDelay_property_feedback/active:
  63. .. rst-class:: classref-property
  64. :ref:`bool<class_bool>` **feedback/active** = ``false``
  65. .. rst-class:: classref-property-setget
  66. - void **set_feedback_active** **(** :ref:`bool<class_bool>` value **)**
  67. - :ref:`bool<class_bool>` **is_feedback_active** **(** **)**
  68. If ``true``, feedback is enabled.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_AudioEffectDelay_property_feedback/delay_ms:
  72. .. rst-class:: classref-property
  73. :ref:`float<class_float>` **feedback/delay_ms** = ``340.0``
  74. .. rst-class:: classref-property-setget
  75. - void **set_feedback_delay_ms** **(** :ref:`float<class_float>` value **)**
  76. - :ref:`float<class_float>` **get_feedback_delay_ms** **(** **)**
  77. Feedback delay time in milliseconds.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_AudioEffectDelay_property_feedback/level_db:
  81. .. rst-class:: classref-property
  82. :ref:`float<class_float>` **feedback/level_db** = ``-6.0``
  83. .. rst-class:: classref-property-setget
  84. - void **set_feedback_level_db** **(** :ref:`float<class_float>` value **)**
  85. - :ref:`float<class_float>` **get_feedback_level_db** **(** **)**
  86. Sound level for ``tap1``.
  87. .. rst-class:: classref-item-separator
  88. ----
  89. .. _class_AudioEffectDelay_property_feedback/lowpass:
  90. .. rst-class:: classref-property
  91. :ref:`float<class_float>` **feedback/lowpass** = ``16000.0``
  92. .. rst-class:: classref-property-setget
  93. - void **set_feedback_lowpass** **(** :ref:`float<class_float>` value **)**
  94. - :ref:`float<class_float>` **get_feedback_lowpass** **(** **)**
  95. Low-pass filter for feedback, in Hz. Frequencies below this value are filtered out of the source signal.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_AudioEffectDelay_property_tap1/active:
  99. .. rst-class:: classref-property
  100. :ref:`bool<class_bool>` **tap1/active** = ``true``
  101. .. rst-class:: classref-property-setget
  102. - void **set_tap1_active** **(** :ref:`bool<class_bool>` value **)**
  103. - :ref:`bool<class_bool>` **is_tap1_active** **(** **)**
  104. If ``true``, ``tap1`` will be enabled.
  105. .. rst-class:: classref-item-separator
  106. ----
  107. .. _class_AudioEffectDelay_property_tap1/delay_ms:
  108. .. rst-class:: classref-property
  109. :ref:`float<class_float>` **tap1/delay_ms** = ``250.0``
  110. .. rst-class:: classref-property-setget
  111. - void **set_tap1_delay_ms** **(** :ref:`float<class_float>` value **)**
  112. - :ref:`float<class_float>` **get_tap1_delay_ms** **(** **)**
  113. ``tap1`` delay time in milliseconds.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_AudioEffectDelay_property_tap1/level_db:
  117. .. rst-class:: classref-property
  118. :ref:`float<class_float>` **tap1/level_db** = ``-6.0``
  119. .. rst-class:: classref-property-setget
  120. - void **set_tap1_level_db** **(** :ref:`float<class_float>` value **)**
  121. - :ref:`float<class_float>` **get_tap1_level_db** **(** **)**
  122. Sound level for ``tap1``.
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_AudioEffectDelay_property_tap1/pan:
  126. .. rst-class:: classref-property
  127. :ref:`float<class_float>` **tap1/pan** = ``0.2``
  128. .. rst-class:: classref-property-setget
  129. - void **set_tap1_pan** **(** :ref:`float<class_float>` value **)**
  130. - :ref:`float<class_float>` **get_tap1_pan** **(** **)**
  131. Pan position for ``tap1``. Value can range from -1 (fully left) to 1 (fully right).
  132. .. rst-class:: classref-item-separator
  133. ----
  134. .. _class_AudioEffectDelay_property_tap2/active:
  135. .. rst-class:: classref-property
  136. :ref:`bool<class_bool>` **tap2/active** = ``true``
  137. .. rst-class:: classref-property-setget
  138. - void **set_tap2_active** **(** :ref:`bool<class_bool>` value **)**
  139. - :ref:`bool<class_bool>` **is_tap2_active** **(** **)**
  140. If ``true``, ``tap2`` will be enabled.
  141. .. rst-class:: classref-item-separator
  142. ----
  143. .. _class_AudioEffectDelay_property_tap2/delay_ms:
  144. .. rst-class:: classref-property
  145. :ref:`float<class_float>` **tap2/delay_ms** = ``500.0``
  146. .. rst-class:: classref-property-setget
  147. - void **set_tap2_delay_ms** **(** :ref:`float<class_float>` value **)**
  148. - :ref:`float<class_float>` **get_tap2_delay_ms** **(** **)**
  149. **Tap2** delay time in milliseconds.
  150. .. rst-class:: classref-item-separator
  151. ----
  152. .. _class_AudioEffectDelay_property_tap2/level_db:
  153. .. rst-class:: classref-property
  154. :ref:`float<class_float>` **tap2/level_db** = ``-12.0``
  155. .. rst-class:: classref-property-setget
  156. - void **set_tap2_level_db** **(** :ref:`float<class_float>` value **)**
  157. - :ref:`float<class_float>` **get_tap2_level_db** **(** **)**
  158. Sound level for ``tap2``.
  159. .. rst-class:: classref-item-separator
  160. ----
  161. .. _class_AudioEffectDelay_property_tap2/pan:
  162. .. rst-class:: classref-property
  163. :ref:`float<class_float>` **tap2/pan** = ``-0.4``
  164. .. rst-class:: classref-property-setget
  165. - void **set_tap2_pan** **(** :ref:`float<class_float>` value **)**
  166. - :ref:`float<class_float>` **get_tap2_pan** **(** **)**
  167. Pan position for ``tap2``. Value can range from -1 (fully left) to 1 (fully right).
  168. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  169. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  170. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  171. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`