class_audioeffectlimiter.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.5/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/AudioEffectLimiter.xml.
  6. .. _class_AudioEffectLimiter:
  7. AudioEffectLimiter
  8. ==================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :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. Properties
  16. ----------
  17. +---------------------------+---------------------------------------------------------------------------+----------+
  18. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | ``-0.1`` |
  19. +---------------------------+---------------------------------------------------------------------------+----------+
  20. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | ``2.0`` |
  21. +---------------------------+---------------------------------------------------------------------------+----------+
  22. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | ``10.0`` |
  23. +---------------------------+---------------------------------------------------------------------------+----------+
  24. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | ``0.0`` |
  25. +---------------------------+---------------------------------------------------------------------------+----------+
  26. Property Descriptions
  27. ---------------------
  28. .. _class_AudioEffectLimiter_property_ceiling_db:
  29. - :ref:`float<class_float>` **ceiling_db**
  30. +-----------+-----------------------+
  31. | *Default* | ``-0.1`` |
  32. +-----------+-----------------------+
  33. | *Setter* | set_ceiling_db(value) |
  34. +-----------+-----------------------+
  35. | *Getter* | get_ceiling_db() |
  36. +-----------+-----------------------+
  37. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  38. ----
  39. .. _class_AudioEffectLimiter_property_soft_clip_db:
  40. - :ref:`float<class_float>` **soft_clip_db**
  41. +-----------+-------------------------+
  42. | *Default* | ``2.0`` |
  43. +-----------+-------------------------+
  44. | *Setter* | set_soft_clip_db(value) |
  45. +-----------+-------------------------+
  46. | *Getter* | get_soft_clip_db() |
  47. +-----------+-------------------------+
  48. Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
  49. ----
  50. .. _class_AudioEffectLimiter_property_soft_clip_ratio:
  51. - :ref:`float<class_float>` **soft_clip_ratio**
  52. +-----------+----------------------------+
  53. | *Default* | ``10.0`` |
  54. +-----------+----------------------------+
  55. | *Setter* | set_soft_clip_ratio(value) |
  56. +-----------+----------------------------+
  57. | *Getter* | get_soft_clip_ratio() |
  58. +-----------+----------------------------+
  59. ----
  60. .. _class_AudioEffectLimiter_property_threshold_db:
  61. - :ref:`float<class_float>` **threshold_db**
  62. +-----------+-------------------------+
  63. | *Default* | ``0.0`` |
  64. +-----------+-------------------------+
  65. | *Setter* | set_threshold_db(value) |
  66. +-----------+-------------------------+
  67. | *Getter* | get_threshold_db() |
  68. +-----------+-------------------------+
  69. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.
  70. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  71. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  72. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`