class_audioeffectlimiter.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. **Deprecated:** Use :ref:`AudioEffectHardLimiter<class_AudioEffectHardLimiter>` instead.
  10. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  11. Adds a soft-clip limiter audio effect to an Audio bus.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. 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.
  16. 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.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +---------------------------+---------------------------------------------------------------------------+----------+
  27. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | ``-0.1`` |
  28. +---------------------------+---------------------------------------------------------------------------+----------+
  29. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | ``2.0`` |
  30. +---------------------------+---------------------------------------------------------------------------+----------+
  31. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | ``10.0`` |
  32. +---------------------------+---------------------------------------------------------------------------+----------+
  33. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | ``0.0`` |
  34. +---------------------------+---------------------------------------------------------------------------+----------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_AudioEffectLimiter_property_ceiling_db:
  41. .. rst-class:: classref-property
  42. :ref:`float<class_float>` **ceiling_db** = ``-0.1`` :ref:`🔗<class_AudioEffectLimiter_property_ceiling_db>`
  43. .. rst-class:: classref-property-setget
  44. - |void| **set_ceiling_db**\ (\ value\: :ref:`float<class_float>`\ )
  45. - :ref:`float<class_float>` **get_ceiling_db**\ (\ )
  46. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_AudioEffectLimiter_property_soft_clip_db:
  50. .. rst-class:: classref-property
  51. :ref:`float<class_float>` **soft_clip_db** = ``2.0`` :ref:`🔗<class_AudioEffectLimiter_property_soft_clip_db>`
  52. .. rst-class:: classref-property-setget
  53. - |void| **set_soft_clip_db**\ (\ value\: :ref:`float<class_float>`\ )
  54. - :ref:`float<class_float>` **get_soft_clip_db**\ (\ )
  55. Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_AudioEffectLimiter_property_soft_clip_ratio:
  59. .. rst-class:: classref-property
  60. :ref:`float<class_float>` **soft_clip_ratio** = ``10.0`` :ref:`🔗<class_AudioEffectLimiter_property_soft_clip_ratio>`
  61. .. rst-class:: classref-property-setget
  62. - |void| **set_soft_clip_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  63. - :ref:`float<class_float>` **get_soft_clip_ratio**\ (\ )
  64. .. container:: contribute
  65. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_AudioEffectLimiter_property_threshold_db:
  69. .. rst-class:: classref-property
  70. :ref:`float<class_float>` **threshold_db** = ``0.0`` :ref:`🔗<class_AudioEffectLimiter_property_threshold_db>`
  71. .. rst-class:: classref-property-setget
  72. - |void| **set_threshold_db**\ (\ value\: :ref:`float<class_float>`\ )
  73. - :ref:`float<class_float>` **get_threshold_db**\ (\ )
  74. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.
  75. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  76. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  77. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  78. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  79. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  80. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  81. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  82. .. |void| replace:: :abbr:`void (No return value.)`