class_audioeffectlimiter.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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/AudioEffectLimiter.xml.
  6. .. _class_AudioEffectLimiter:
  7. AudioEffectLimiter
  8. ==================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Adds a soft-clip limiter audio effect to an Audio bus.
  11. Description
  12. -----------
  13. A limiter is similar to a compressor, but it's less flexible and designed to disallow sound going over a given dB threshold. Adding one in the Master bus is always recommended to reduce the effects of clipping.
  14. Soft clipping starts to reduce the peaks a little below the threshold level and progressively increases its effect as the input level increases such that the threshold is never exceeded.
  15. Tutorials
  16. ---------
  17. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  18. Properties
  19. ----------
  20. +---------------------------+---------------------------------------------------------------------------+----------+
  21. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | ``-0.1`` |
  22. +---------------------------+---------------------------------------------------------------------------+----------+
  23. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | ``2.0`` |
  24. +---------------------------+---------------------------------------------------------------------------+----------+
  25. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | ``10.0`` |
  26. +---------------------------+---------------------------------------------------------------------------+----------+
  27. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | ``0.0`` |
  28. +---------------------------+---------------------------------------------------------------------------+----------+
  29. Property Descriptions
  30. ---------------------
  31. .. _class_AudioEffectLimiter_property_ceiling_db:
  32. - :ref:`float<class_float>` **ceiling_db**
  33. +-----------+-----------------------+
  34. | *Default* | ``-0.1`` |
  35. +-----------+-----------------------+
  36. | *Setter* | set_ceiling_db(value) |
  37. +-----------+-----------------------+
  38. | *Getter* | get_ceiling_db() |
  39. +-----------+-----------------------+
  40. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  41. ----
  42. .. _class_AudioEffectLimiter_property_soft_clip_db:
  43. - :ref:`float<class_float>` **soft_clip_db**
  44. +-----------+-------------------------+
  45. | *Default* | ``2.0`` |
  46. +-----------+-------------------------+
  47. | *Setter* | set_soft_clip_db(value) |
  48. +-----------+-------------------------+
  49. | *Getter* | get_soft_clip_db() |
  50. +-----------+-------------------------+
  51. Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
  52. ----
  53. .. _class_AudioEffectLimiter_property_soft_clip_ratio:
  54. - :ref:`float<class_float>` **soft_clip_ratio**
  55. +-----------+----------------------------+
  56. | *Default* | ``10.0`` |
  57. +-----------+----------------------------+
  58. | *Setter* | set_soft_clip_ratio(value) |
  59. +-----------+----------------------------+
  60. | *Getter* | get_soft_clip_ratio() |
  61. +-----------+----------------------------+
  62. ----
  63. .. _class_AudioEffectLimiter_property_threshold_db:
  64. - :ref:`float<class_float>` **threshold_db**
  65. +-----------+-------------------------+
  66. | *Default* | ``0.0`` |
  67. +-----------+-------------------------+
  68. | *Setter* | set_threshold_db(value) |
  69. +-----------+-------------------------+
  70. | *Getter* | get_threshold_db() |
  71. +-----------+-------------------------+
  72. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.
  73. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  74. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  75. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  76. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  77. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  78. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`