class_audioeffectdelay.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioEffectDelay.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioEffectDelay:
  6. AudioEffectDelay
  7. ================
  8. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Adds a delay audio effect to an audio bus. Plays input signal back after a period of time.
  10. Two tap delay and feedback options.
  11. Description
  12. -----------
  13. 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.
  14. Properties
  15. ----------
  16. +---------------------------+-----------------------------------------------------------------------------+-------------+
  17. | :ref:`float<class_float>` | :ref:`dry<class_AudioEffectDelay_property_dry>` | ``1.0`` |
  18. +---------------------------+-----------------------------------------------------------------------------+-------------+
  19. | :ref:`bool<class_bool>` | :ref:`feedback/active<class_AudioEffectDelay_property_feedback/active>` | ``false`` |
  20. +---------------------------+-----------------------------------------------------------------------------+-------------+
  21. | :ref:`float<class_float>` | :ref:`feedback/delay_ms<class_AudioEffectDelay_property_feedback/delay_ms>` | ``340.0`` |
  22. +---------------------------+-----------------------------------------------------------------------------+-------------+
  23. | :ref:`float<class_float>` | :ref:`feedback/level_db<class_AudioEffectDelay_property_feedback/level_db>` | ``-6.0`` |
  24. +---------------------------+-----------------------------------------------------------------------------+-------------+
  25. | :ref:`float<class_float>` | :ref:`feedback/lowpass<class_AudioEffectDelay_property_feedback/lowpass>` | ``16000.0`` |
  26. +---------------------------+-----------------------------------------------------------------------------+-------------+
  27. | :ref:`bool<class_bool>` | :ref:`tap1/active<class_AudioEffectDelay_property_tap1/active>` | ``true`` |
  28. +---------------------------+-----------------------------------------------------------------------------+-------------+
  29. | :ref:`float<class_float>` | :ref:`tap1/delay_ms<class_AudioEffectDelay_property_tap1/delay_ms>` | ``250.0`` |
  30. +---------------------------+-----------------------------------------------------------------------------+-------------+
  31. | :ref:`float<class_float>` | :ref:`tap1/level_db<class_AudioEffectDelay_property_tap1/level_db>` | ``-6.0`` |
  32. +---------------------------+-----------------------------------------------------------------------------+-------------+
  33. | :ref:`float<class_float>` | :ref:`tap1/pan<class_AudioEffectDelay_property_tap1/pan>` | ``0.2`` |
  34. +---------------------------+-----------------------------------------------------------------------------+-------------+
  35. | :ref:`bool<class_bool>` | :ref:`tap2/active<class_AudioEffectDelay_property_tap2/active>` | ``true`` |
  36. +---------------------------+-----------------------------------------------------------------------------+-------------+
  37. | :ref:`float<class_float>` | :ref:`tap2/delay_ms<class_AudioEffectDelay_property_tap2/delay_ms>` | ``500.0`` |
  38. +---------------------------+-----------------------------------------------------------------------------+-------------+
  39. | :ref:`float<class_float>` | :ref:`tap2/level_db<class_AudioEffectDelay_property_tap2/level_db>` | ``-12.0`` |
  40. +---------------------------+-----------------------------------------------------------------------------+-------------+
  41. | :ref:`float<class_float>` | :ref:`tap2/pan<class_AudioEffectDelay_property_tap2/pan>` | ``-0.4`` |
  42. +---------------------------+-----------------------------------------------------------------------------+-------------+
  43. Property Descriptions
  44. ---------------------
  45. .. _class_AudioEffectDelay_property_dry:
  46. - :ref:`float<class_float>` **dry**
  47. +-----------+----------------+
  48. | *Default* | ``1.0`` |
  49. +-----------+----------------+
  50. | *Setter* | set_dry(value) |
  51. +-----------+----------------+
  52. | *Getter* | get_dry() |
  53. +-----------+----------------+
  54. Output percent of original sound. At 0, only delayed sounds are output. Value can range from 0 to 1.
  55. ----
  56. .. _class_AudioEffectDelay_property_feedback/active:
  57. - :ref:`bool<class_bool>` **feedback/active**
  58. +-----------+----------------------------+
  59. | *Default* | ``false`` |
  60. +-----------+----------------------------+
  61. | *Setter* | set_feedback_active(value) |
  62. +-----------+----------------------------+
  63. | *Getter* | is_feedback_active() |
  64. +-----------+----------------------------+
  65. If ``true``, feedback is enabled.
  66. ----
  67. .. _class_AudioEffectDelay_property_feedback/delay_ms:
  68. - :ref:`float<class_float>` **feedback/delay_ms**
  69. +-----------+------------------------------+
  70. | *Default* | ``340.0`` |
  71. +-----------+------------------------------+
  72. | *Setter* | set_feedback_delay_ms(value) |
  73. +-----------+------------------------------+
  74. | *Getter* | get_feedback_delay_ms() |
  75. +-----------+------------------------------+
  76. Feedback delay time in milliseconds.
  77. ----
  78. .. _class_AudioEffectDelay_property_feedback/level_db:
  79. - :ref:`float<class_float>` **feedback/level_db**
  80. +-----------+------------------------------+
  81. | *Default* | ``-6.0`` |
  82. +-----------+------------------------------+
  83. | *Setter* | set_feedback_level_db(value) |
  84. +-----------+------------------------------+
  85. | *Getter* | get_feedback_level_db() |
  86. +-----------+------------------------------+
  87. Sound level for ``tap1``.
  88. ----
  89. .. _class_AudioEffectDelay_property_feedback/lowpass:
  90. - :ref:`float<class_float>` **feedback/lowpass**
  91. +-----------+-----------------------------+
  92. | *Default* | ``16000.0`` |
  93. +-----------+-----------------------------+
  94. | *Setter* | set_feedback_lowpass(value) |
  95. +-----------+-----------------------------+
  96. | *Getter* | get_feedback_lowpass() |
  97. +-----------+-----------------------------+
  98. Low-pass filter for feedback, in Hz. Frequencies below this value are filtered out of the source signal.
  99. ----
  100. .. _class_AudioEffectDelay_property_tap1/active:
  101. - :ref:`bool<class_bool>` **tap1/active**
  102. +-----------+------------------------+
  103. | *Default* | ``true`` |
  104. +-----------+------------------------+
  105. | *Setter* | set_tap1_active(value) |
  106. +-----------+------------------------+
  107. | *Getter* | is_tap1_active() |
  108. +-----------+------------------------+
  109. If ``true``, ``tap1`` will be enabled.
  110. ----
  111. .. _class_AudioEffectDelay_property_tap1/delay_ms:
  112. - :ref:`float<class_float>` **tap1/delay_ms**
  113. +-----------+--------------------------+
  114. | *Default* | ``250.0`` |
  115. +-----------+--------------------------+
  116. | *Setter* | set_tap1_delay_ms(value) |
  117. +-----------+--------------------------+
  118. | *Getter* | get_tap1_delay_ms() |
  119. +-----------+--------------------------+
  120. ``tap1`` delay time in milliseconds.
  121. ----
  122. .. _class_AudioEffectDelay_property_tap1/level_db:
  123. - :ref:`float<class_float>` **tap1/level_db**
  124. +-----------+--------------------------+
  125. | *Default* | ``-6.0`` |
  126. +-----------+--------------------------+
  127. | *Setter* | set_tap1_level_db(value) |
  128. +-----------+--------------------------+
  129. | *Getter* | get_tap1_level_db() |
  130. +-----------+--------------------------+
  131. Sound level for ``tap1``.
  132. ----
  133. .. _class_AudioEffectDelay_property_tap1/pan:
  134. - :ref:`float<class_float>` **tap1/pan**
  135. +-----------+---------------------+
  136. | *Default* | ``0.2`` |
  137. +-----------+---------------------+
  138. | *Setter* | set_tap1_pan(value) |
  139. +-----------+---------------------+
  140. | *Getter* | get_tap1_pan() |
  141. +-----------+---------------------+
  142. Pan position for ``tap1``. Value can range from -1 (fully left) to 1 (fully right).
  143. ----
  144. .. _class_AudioEffectDelay_property_tap2/active:
  145. - :ref:`bool<class_bool>` **tap2/active**
  146. +-----------+------------------------+
  147. | *Default* | ``true`` |
  148. +-----------+------------------------+
  149. | *Setter* | set_tap2_active(value) |
  150. +-----------+------------------------+
  151. | *Getter* | is_tap2_active() |
  152. +-----------+------------------------+
  153. If ``true``, ``tap2`` will be enabled.
  154. ----
  155. .. _class_AudioEffectDelay_property_tap2/delay_ms:
  156. - :ref:`float<class_float>` **tap2/delay_ms**
  157. +-----------+--------------------------+
  158. | *Default* | ``500.0`` |
  159. +-----------+--------------------------+
  160. | *Setter* | set_tap2_delay_ms(value) |
  161. +-----------+--------------------------+
  162. | *Getter* | get_tap2_delay_ms() |
  163. +-----------+--------------------------+
  164. **Tap2** delay time in milliseconds.
  165. ----
  166. .. _class_AudioEffectDelay_property_tap2/level_db:
  167. - :ref:`float<class_float>` **tap2/level_db**
  168. +-----------+--------------------------+
  169. | *Default* | ``-12.0`` |
  170. +-----------+--------------------------+
  171. | *Setter* | set_tap2_level_db(value) |
  172. +-----------+--------------------------+
  173. | *Getter* | get_tap2_level_db() |
  174. +-----------+--------------------------+
  175. Sound level for ``tap2``.
  176. ----
  177. .. _class_AudioEffectDelay_property_tap2/pan:
  178. - :ref:`float<class_float>` **tap2/pan**
  179. +-----------+---------------------+
  180. | *Default* | ``-0.4`` |
  181. +-----------+---------------------+
  182. | *Setter* | set_tap2_pan(value) |
  183. +-----------+---------------------+
  184. | *Getter* | get_tap2_pan() |
  185. +-----------+---------------------+
  186. Pan position for ``tap2``. Value can range from -1 (fully left) to 1 (fully right).
  187. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  188. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  189. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`