class_audioeffectlimiter.rst 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the AudioEffectLimiter.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_AudioEffectLimiter:
  5. AudioEffectLimiter
  6. ==================
  7. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Adds a soft-clip limiter audio effect to an Audio bus.
  12. Properties
  13. ----------
  14. +---------------------------+---------------------------------------------------------------------------+------+
  15. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | -0.1 |
  16. +---------------------------+---------------------------------------------------------------------------+------+
  17. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | 2.0 |
  18. +---------------------------+---------------------------------------------------------------------------+------+
  19. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | 10.0 |
  20. +---------------------------+---------------------------------------------------------------------------+------+
  21. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | 0.0 |
  22. +---------------------------+---------------------------------------------------------------------------+------+
  23. Description
  24. -----------
  25. 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.
  26. 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.
  27. Property Descriptions
  28. ---------------------
  29. .. _class_AudioEffectLimiter_property_ceiling_db:
  30. - :ref:`float<class_float>` **ceiling_db**
  31. +-----------+-----------------------+
  32. | *Default* | -0.1 |
  33. +-----------+-----------------------+
  34. | *Setter* | set_ceiling_db(value) |
  35. +-----------+-----------------------+
  36. | *Getter* | get_ceiling_db() |
  37. +-----------+-----------------------+
  38. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  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. .. _class_AudioEffectLimiter_property_soft_clip_ratio:
  50. - :ref:`float<class_float>` **soft_clip_ratio**
  51. +-----------+----------------------------+
  52. | *Default* | 10.0 |
  53. +-----------+----------------------------+
  54. | *Setter* | set_soft_clip_ratio(value) |
  55. +-----------+----------------------------+
  56. | *Getter* | get_soft_clip_ratio() |
  57. +-----------+----------------------------+
  58. .. _class_AudioEffectLimiter_property_threshold_db:
  59. - :ref:`float<class_float>` **threshold_db**
  60. +-----------+-------------------------+
  61. | *Default* | 0.0 |
  62. +-----------+-------------------------+
  63. | *Setter* | set_threshold_db(value) |
  64. +-----------+-------------------------+
  65. | *Getter* | get_threshold_db() |
  66. +-----------+-------------------------+
  67. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.