Files
godot-docs-l10n/classes/uk/class_audioeffectdistortion.rst

208 lines
9.3 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_AudioEffectDistortion:
AudioEffectDistortion
=====================
**Успадковує:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Додає звуковий ефект спотворення до звукової шини.
Змінює звук, щоб зробити його спотвореним.
.. rst-class:: classref-introduction-group
Опис
--------
Доступні різні типи: кліп, тен, lo-fi (подрібнення бітів), овердрайв або хвиля.
Через спотворення форми сигналу змінюється частотний вміст, що часто робить звук «хрустким» або «абразивним». Для ігор він може дуже ефективно імітувати звук, що надходить від якогось насиченого пристрою чи динаміка.
.. rst-class:: classref-introduction-group
Посібники
------------------
- :doc:`Звукові шини <../tutorials/audio/audio_buses>`
.. rst-class:: classref-reftable-group
Властивості
----------------------
.. table::
:widths: auto
+----------------------------------------------+--------------------------------------------------------------------+-------------+
| :ref:`float<class_float>` | :ref:`drive<class_AudioEffectDistortion_property_drive>` | ``0.0`` |
+----------------------------------------------+--------------------------------------------------------------------+-------------+
| :ref:`float<class_float>` | :ref:`keep_hf_hz<class_AudioEffectDistortion_property_keep_hf_hz>` | ``16000.0`` |
+----------------------------------------------+--------------------------------------------------------------------+-------------+
| :ref:`Mode<enum_AudioEffectDistortion_Mode>` | :ref:`mode<class_AudioEffectDistortion_property_mode>` | ``0`` |
+----------------------------------------------+--------------------------------------------------------------------+-------------+
| :ref:`float<class_float>` | :ref:`post_gain<class_AudioEffectDistortion_property_post_gain>` | ``0.0`` |
+----------------------------------------------+--------------------------------------------------------------------+-------------+
| :ref:`float<class_float>` | :ref:`pre_gain<class_AudioEffectDistortion_property_pre_gain>` | ``0.0`` |
+----------------------------------------------+--------------------------------------------------------------------+-------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Переліки
----------------
.. _enum_AudioEffectDistortion_Mode:
.. rst-class:: classref-enumeration
enum **Mode**: :ref:`🔗<enum_AudioEffectDistortion_Mode>`
.. _class_AudioEffectDistortion_constant_MODE_CLIP:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **MODE_CLIP** = ``0``
Ефект цифрового спотворення, який обрізає піки у верхній і нижній частині хвилі.
.. _class_AudioEffectDistortion_constant_MODE_ATAN:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **MODE_ATAN** = ``1``
.. container:: contribute
There is currently no description for this enum. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
.. _class_AudioEffectDistortion_constant_MODE_LOFI:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **MODE_LOFI** = ``2``
Ефект цифрового спотворення низької роздільної здатності (зменшення бітової глибини). Ви можете використовувати його для емуляції звуку ранніх цифрових аудіопристроїв.
.. _class_AudioEffectDistortion_constant_MODE_OVERDRIVE:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **MODE_OVERDRIVE** = ``3``
Імітує тепле спотворення, створене польовим транзистором, який зазвичай використовується в твердотільних підсилювачах музичних інструментів. Властивість :ref:`drive<class_AudioEffectDistortion_property_drive>` не діє в цьому режимі.
.. _class_AudioEffectDistortion_constant_MODE_WAVESHAPE:
.. rst-class:: classref-enumeration-constant
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **MODE_WAVESHAPE** = ``4``
Спотворення Waveshaper використовуються в основному електронними музикантами для досягнення надзвичайно абразивного звуку.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи властивостей
------------------------------------
.. _class_AudioEffectDistortion_property_drive:
.. rst-class:: classref-property
:ref:`float<class_float>` **drive** = ``0.0`` :ref:`🔗<class_AudioEffectDistortion_property_drive>`
.. rst-class:: classref-property-setget
- |void| **set_drive**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_drive**\ (\ )
Потужність спотворення. Значення може варіюватися від 0 до 1.
.. rst-class:: classref-item-separator
----
.. _class_AudioEffectDistortion_property_keep_hf_hz:
.. rst-class:: classref-property
:ref:`float<class_float>` **keep_hf_hz** = ``16000.0`` :ref:`🔗<class_AudioEffectDistortion_property_keep_hf_hz>`
.. rst-class:: classref-property-setget
- |void| **set_keep_hf_hz**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_keep_hf_hz**\ (\ )
Фільтр високих частот, Гц. На частоти, вищі за це значення, спотворення не впливатимуть. Значення може коливатися від 1 до 20000.
.. rst-class:: classref-item-separator
----
.. _class_AudioEffectDistortion_property_mode:
.. rst-class:: classref-property
:ref:`Mode<enum_AudioEffectDistortion_Mode>` **mode** = ``0`` :ref:`🔗<class_AudioEffectDistortion_property_mode>`
.. rst-class:: classref-property-setget
- |void| **set_mode**\ (\ value\: :ref:`Mode<enum_AudioEffectDistortion_Mode>`\ )
- :ref:`Mode<enum_AudioEffectDistortion_Mode>` **get_mode**\ (\ )
Тип спотворення.
.. rst-class:: classref-item-separator
----
.. _class_AudioEffectDistortion_property_post_gain:
.. rst-class:: classref-property
:ref:`float<class_float>` **post_gain** = ``0.0`` :ref:`🔗<class_AudioEffectDistortion_property_post_gain>`
.. rst-class:: classref-property-setget
- |void| **set_post_gain**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_post_gain**\ (\ )
Збільшує або зменшує гучність після ефекту в децибелах. Значення може коливатися від -80 до 24.
.. rst-class:: classref-item-separator
----
.. _class_AudioEffectDistortion_property_pre_gain:
.. rst-class:: classref-property
:ref:`float<class_float>` **pre_gain** = ``0.0`` :ref:`🔗<class_AudioEffectDistortion_property_pre_gain>`
.. rst-class:: classref-property-setget
- |void| **set_pre_gain**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_pre_gain**\ (\ )
Збільшує або зменшує гучність перед ефектом у децибелах. Значення може коливатися від -60 до 60.
.. |virtual| replace:: :abbr:`virtual (Зазвичай, цей метод перевизначається користувачем, щоб він мав вплив.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Цей метод не має побічних ефектів. Не змінює ніяку змінну екземпляра об'єкта.)`
.. |vararg| replace:: :abbr:`vararg (Цей метод приймає будь-яке число аргументів після описаних тут.)`
.. |constructor| replace:: :abbr:`constructor (Цей метод використовується для побудови типів.)`
.. |static| replace:: :abbr:`static (Цей метод не потребує екземпляра для виклику, його можна викликати безпосередньо за допомогою назви класу.)`
.. |operator| replace:: :abbr:`operator (Цей метод описує дійсний оператор для взаємодії з цим типом як з лівим операндом.)`
.. |bitfield| replace:: :abbr:`BitField (Це значення є цілим числом, складеним у вигляді бітової маски з наступних прапорів.)`
.. |void| replace:: :abbr:`void (Значення не повертається.)`