mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
8ea0d727f0
Fixing a few typos in the AudioEffectDistortion docs, making a few things clearer, etc Also adding the decibel (dB) suffix to the pre/post gain properties in the inspector.
48 lines
2.6 KiB
XML
48 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="AudioEffectDistortion" inherits="AudioEffect" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Adds a distortion audio effect to an Audio bus.
|
|
Modifies the sound to make it distorted.
|
|
</brief_description>
|
|
<description>
|
|
Different types are available: clip, tan, lo-fi (bit crushing), overdrive, or waveshape.
|
|
By distorting the waveform the frequency content changes, which will often make the sound "crunchy" or "abrasive". For games, it can simulate sound coming from some saturated device or speaker very efficiently.
|
|
</description>
|
|
<tutorials>
|
|
<link title="Audio buses">$DOCS_URL/tutorials/audio/audio_buses.html</link>
|
|
</tutorials>
|
|
<members>
|
|
<member name="drive" type="float" setter="set_drive" getter="get_drive" default="0.0">
|
|
Distortion power. Value can range from 0 to 1.
|
|
</member>
|
|
<member name="keep_hf_hz" type="float" setter="set_keep_hf_hz" getter="get_keep_hf_hz" default="16000.0">
|
|
High-pass filter, in Hz. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000.
|
|
</member>
|
|
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="AudioEffectDistortion.Mode" default="0">
|
|
Distortion type.
|
|
</member>
|
|
<member name="post_gain" type="float" setter="set_post_gain" getter="get_post_gain" default="0.0">
|
|
Increases or decreases the volume after the effect, in decibels. Value can range from -80 to 24.
|
|
</member>
|
|
<member name="pre_gain" type="float" setter="set_pre_gain" getter="get_pre_gain" default="0.0">
|
|
Increases or decreases the volume before the effect, in decibels. Value can range from -60 to 60.
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
<constant name="MODE_CLIP" value="0" enum="Mode">
|
|
Digital distortion effect which cuts off peaks at the top and bottom of the waveform.
|
|
</constant>
|
|
<constant name="MODE_ATAN" value="1" enum="Mode">
|
|
</constant>
|
|
<constant name="MODE_LOFI" value="2" enum="Mode">
|
|
Low-resolution digital distortion effect (bit depth reduction). You can use it to emulate the sound of early digital audio devices.
|
|
</constant>
|
|
<constant name="MODE_OVERDRIVE" value="3" enum="Mode">
|
|
Emulates the warm distortion produced by a field effect transistor, which is commonly used in solid-state musical instrument amplifiers. The [member drive] property has no effect in this mode.
|
|
</constant>
|
|
<constant name="MODE_WAVESHAPE" value="4" enum="Mode">
|
|
Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound.
|
|
</constant>
|
|
</constants>
|
|
</class>
|