class_audioeffectdelay.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. Description
  13. -----------
  14. 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.
  15. Tutorials
  16. ---------
  17. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  18. Properties
  19. ----------
  20. +---------------------------+-----------------------------------------------------------------------------+-------------+
  21. | :ref:`float<class_float>` | :ref:`dry<class_AudioEffectDelay_property_dry>` | ``1.0`` |
  22. +---------------------------+-----------------------------------------------------------------------------+-------------+
  23. | :ref:`bool<class_bool>` | :ref:`feedback/active<class_AudioEffectDelay_property_feedback/active>` | ``false`` |
  24. +---------------------------+-----------------------------------------------------------------------------+-------------+
  25. | :ref:`float<class_float>` | :ref:`feedback/delay_ms<class_AudioEffectDelay_property_feedback/delay_ms>` | ``340.0`` |
  26. +---------------------------+-----------------------------------------------------------------------------+-------------+
  27. | :ref:`float<class_float>` | :ref:`feedback/level_db<class_AudioEffectDelay_property_feedback/level_db>` | ``-6.0`` |
  28. +---------------------------+-----------------------------------------------------------------------------+-------------+
  29. | :ref:`float<class_float>` | :ref:`feedback/lowpass<class_AudioEffectDelay_property_feedback/lowpass>` | ``16000.0`` |
  30. +---------------------------+-----------------------------------------------------------------------------+-------------+
  31. | :ref:`bool<class_bool>` | :ref:`tap1/active<class_AudioEffectDelay_property_tap1/active>` | ``true`` |
  32. +---------------------------+-----------------------------------------------------------------------------+-------------+
  33. | :ref:`float<class_float>` | :ref:`tap1/delay_ms<class_AudioEffectDelay_property_tap1/delay_ms>` | ``250.0`` |
  34. +---------------------------+-----------------------------------------------------------------------------+-------------+
  35. | :ref:`float<class_float>` | :ref:`tap1/level_db<class_AudioEffectDelay_property_tap1/level_db>` | ``-6.0`` |
  36. +---------------------------+-----------------------------------------------------------------------------+-------------+
  37. | :ref:`float<class_float>` | :ref:`tap1/pan<class_AudioEffectDelay_property_tap1/pan>` | ``0.2`` |
  38. +---------------------------+-----------------------------------------------------------------------------+-------------+
  39. | :ref:`bool<class_bool>` | :ref:`tap2/active<class_AudioEffectDelay_property_tap2/active>` | ``true`` |
  40. +---------------------------+-----------------------------------------------------------------------------+-------------+
  41. | :ref:`float<class_float>` | :ref:`tap2/delay_ms<class_AudioEffectDelay_property_tap2/delay_ms>` | ``500.0`` |
  42. +---------------------------+-----------------------------------------------------------------------------+-------------+
  43. | :ref:`float<class_float>` | :ref:`tap2/level_db<class_AudioEffectDelay_property_tap2/level_db>` | ``-12.0`` |
  44. +---------------------------+-----------------------------------------------------------------------------+-------------+
  45. | :ref:`float<class_float>` | :ref:`tap2/pan<class_AudioEffectDelay_property_tap2/pan>` | ``-0.4`` |
  46. +---------------------------+-----------------------------------------------------------------------------+-------------+
  47. Property Descriptions
  48. ---------------------
  49. .. _class_AudioEffectDelay_property_dry:
  50. - :ref:`float<class_float>` **dry**
  51. +-----------+----------------+
  52. | *Default* | ``1.0`` |
  53. +-----------+----------------+
  54. | *Setter* | set_dry(value) |
  55. +-----------+----------------+
  56. | *Getter* | get_dry() |
  57. +-----------+----------------+
  58. Output percent of original sound. At 0, only delayed sounds are output. Value can range from 0 to 1.
  59. ----
  60. .. _class_AudioEffectDelay_property_feedback/active:
  61. - :ref:`bool<class_bool>` **feedback/active**
  62. +-----------+----------------------------+
  63. | *Default* | ``false`` |
  64. +-----------+----------------------------+
  65. | *Setter* | set_feedback_active(value) |
  66. +-----------+----------------------------+
  67. | *Getter* | is_feedback_active() |
  68. +-----------+----------------------------+
  69. If ``true``, feedback is enabled.
  70. ----
  71. .. _class_AudioEffectDelay_property_feedback/delay_ms:
  72. - :ref:`float<class_float>` **feedback/delay_ms**
  73. +-----------+------------------------------+
  74. | *Default* | ``340.0`` |
  75. +-----------+------------------------------+
  76. | *Setter* | set_feedback_delay_ms(value) |
  77. +-----------+------------------------------+
  78. | *Getter* | get_feedback_delay_ms() |
  79. +-----------+------------------------------+
  80. Feedback delay time in milliseconds.
  81. ----
  82. .. _class_AudioEffectDelay_property_feedback/level_db:
  83. - :ref:`float<class_float>` **feedback/level_db**
  84. +-----------+------------------------------+
  85. | *Default* | ``-6.0`` |
  86. +-----------+------------------------------+
  87. | *Setter* | set_feedback_level_db(value) |
  88. +-----------+------------------------------+
  89. | *Getter* | get_feedback_level_db() |
  90. +-----------+------------------------------+
  91. Sound level for ``tap1``.
  92. ----
  93. .. _class_AudioEffectDelay_property_feedback/lowpass:
  94. - :ref:`float<class_float>` **feedback/lowpass**
  95. +-----------+-----------------------------+
  96. | *Default* | ``16000.0`` |
  97. +-----------+-----------------------------+
  98. | *Setter* | set_feedback_lowpass(value) |
  99. +-----------+-----------------------------+
  100. | *Getter* | get_feedback_lowpass() |
  101. +-----------+-----------------------------+
  102. Low-pass filter for feedback, in Hz. Frequencies below this value are filtered out of the source signal.
  103. ----
  104. .. _class_AudioEffectDelay_property_tap1/active:
  105. - :ref:`bool<class_bool>` **tap1/active**
  106. +-----------+------------------------+
  107. | *Default* | ``true`` |
  108. +-----------+------------------------+
  109. | *Setter* | set_tap1_active(value) |
  110. +-----------+------------------------+
  111. | *Getter* | is_tap1_active() |
  112. +-----------+------------------------+
  113. If ``true``, ``tap1`` will be enabled.
  114. ----
  115. .. _class_AudioEffectDelay_property_tap1/delay_ms:
  116. - :ref:`float<class_float>` **tap1/delay_ms**
  117. +-----------+--------------------------+
  118. | *Default* | ``250.0`` |
  119. +-----------+--------------------------+
  120. | *Setter* | set_tap1_delay_ms(value) |
  121. +-----------+--------------------------+
  122. | *Getter* | get_tap1_delay_ms() |
  123. +-----------+--------------------------+
  124. ``tap1`` delay time in milliseconds.
  125. ----
  126. .. _class_AudioEffectDelay_property_tap1/level_db:
  127. - :ref:`float<class_float>` **tap1/level_db**
  128. +-----------+--------------------------+
  129. | *Default* | ``-6.0`` |
  130. +-----------+--------------------------+
  131. | *Setter* | set_tap1_level_db(value) |
  132. +-----------+--------------------------+
  133. | *Getter* | get_tap1_level_db() |
  134. +-----------+--------------------------+
  135. Sound level for ``tap1``.
  136. ----
  137. .. _class_AudioEffectDelay_property_tap1/pan:
  138. - :ref:`float<class_float>` **tap1/pan**
  139. +-----------+---------------------+
  140. | *Default* | ``0.2`` |
  141. +-----------+---------------------+
  142. | *Setter* | set_tap1_pan(value) |
  143. +-----------+---------------------+
  144. | *Getter* | get_tap1_pan() |
  145. +-----------+---------------------+
  146. Pan position for ``tap1``. Value can range from -1 (fully left) to 1 (fully right).
  147. ----
  148. .. _class_AudioEffectDelay_property_tap2/active:
  149. - :ref:`bool<class_bool>` **tap2/active**
  150. +-----------+------------------------+
  151. | *Default* | ``true`` |
  152. +-----------+------------------------+
  153. | *Setter* | set_tap2_active(value) |
  154. +-----------+------------------------+
  155. | *Getter* | is_tap2_active() |
  156. +-----------+------------------------+
  157. If ``true``, ``tap2`` will be enabled.
  158. ----
  159. .. _class_AudioEffectDelay_property_tap2/delay_ms:
  160. - :ref:`float<class_float>` **tap2/delay_ms**
  161. +-----------+--------------------------+
  162. | *Default* | ``500.0`` |
  163. +-----------+--------------------------+
  164. | *Setter* | set_tap2_delay_ms(value) |
  165. +-----------+--------------------------+
  166. | *Getter* | get_tap2_delay_ms() |
  167. +-----------+--------------------------+
  168. **Tap2** delay time in milliseconds.
  169. ----
  170. .. _class_AudioEffectDelay_property_tap2/level_db:
  171. - :ref:`float<class_float>` **tap2/level_db**
  172. +-----------+--------------------------+
  173. | *Default* | ``-12.0`` |
  174. +-----------+--------------------------+
  175. | *Setter* | set_tap2_level_db(value) |
  176. +-----------+--------------------------+
  177. | *Getter* | get_tap2_level_db() |
  178. +-----------+--------------------------+
  179. Sound level for ``tap2``.
  180. ----
  181. .. _class_AudioEffectDelay_property_tap2/pan:
  182. - :ref:`float<class_float>` **tap2/pan**
  183. +-----------+---------------------+
  184. | *Default* | ``-0.4`` |
  185. +-----------+---------------------+
  186. | *Setter* | set_tap2_pan(value) |
  187. +-----------+---------------------+
  188. | *Getter* | get_tap2_pan() |
  189. +-----------+---------------------+
  190. Pan position for ``tap2``. Value can range from -1 (fully left) to 1 (fully right).
  191. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  192. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  193. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  194. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  195. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  196. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`