class_audioeffectlimiter.rst 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 AudioEffectLimiter.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioEffectLimiter:
  6. AudioEffectLimiter
  7. ==================
  8. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Adds a soft-clip limiter audio effect to an Audio bus.
  13. Properties
  14. ----------
  15. +---------------------------+---------------------------------------------------------------------------+------+
  16. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | -0.1 |
  17. +---------------------------+---------------------------------------------------------------------------+------+
  18. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | 2.0 |
  19. +---------------------------+---------------------------------------------------------------------------+------+
  20. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | 10.0 |
  21. +---------------------------+---------------------------------------------------------------------------+------+
  22. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | 0.0 |
  23. +---------------------------+---------------------------------------------------------------------------+------+
  24. Description
  25. -----------
  26. 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.
  27. 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.
  28. Property Descriptions
  29. ---------------------
  30. .. _class_AudioEffectLimiter_property_ceiling_db:
  31. - :ref:`float<class_float>` **ceiling_db**
  32. +-----------+-----------------------+
  33. | *Default* | -0.1 |
  34. +-----------+-----------------------+
  35. | *Setter* | set_ceiling_db(value) |
  36. +-----------+-----------------------+
  37. | *Getter* | get_ceiling_db() |
  38. +-----------+-----------------------+
  39. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  40. .. _class_AudioEffectLimiter_property_soft_clip_db:
  41. - :ref:`float<class_float>` **soft_clip_db**
  42. +-----------+-------------------------+
  43. | *Default* | 2.0 |
  44. +-----------+-------------------------+
  45. | *Setter* | set_soft_clip_db(value) |
  46. +-----------+-------------------------+
  47. | *Getter* | get_soft_clip_db() |
  48. +-----------+-------------------------+
  49. Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
  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. .. _class_AudioEffectLimiter_property_threshold_db:
  60. - :ref:`float<class_float>` **threshold_db**
  61. +-----------+-------------------------+
  62. | *Default* | 0.0 |
  63. +-----------+-------------------------+
  64. | *Setter* | set_threshold_db(value) |
  65. +-----------+-------------------------+
  66. | *Getter* | get_threshold_db() |
  67. +-----------+-------------------------+
  68. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.