2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-01-26 15:01:49 +00:00
<class name= "AudioEffectDistortion" inherits= "AudioEffect" version= "3.2" >
2017-09-12 20:42:36 +00:00
<brief_description >
2019-06-21 23:04:47 +00:00
Adds a distortion audio effect to an Audio bus.
2020-09-11 15:20:21 +00:00
Modify the sound to make it distorted.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2020-09-11 15:20:21 +00:00
Different types are available: clip, tan, lo-fi (bit crushing), overdrive, or waveshape.
2017-09-16 16:47:19 +00:00
By distorting the waveform the frequency content change, which will often make the sound "crunchy" or "abrasive". For games, it can simulate sound coming from some saturated device or speaker very efficiently.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2020-10-19 13:55:33 +00:00
<link title= "Audio buses" > https://docs.godotengine.org/en/3.2/tutorials/audio/audio_buses.html</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<methods >
</methods>
<members >
2019-06-29 10:38:01 +00:00
<member name= "drive" type= "float" setter= "set_drive" getter= "get_drive" default= "0.0" >
2019-06-29 13:24:23 +00:00
Distortion power. Value can range from 0 to 1.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "keep_hf_hz" type= "float" setter= "set_keep_hf_hz" getter= "get_keep_hf_hz" default= "16000.0" >
2019-06-29 13:24:23 +00:00
High-pass filter, in Hz. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "mode" type= "int" setter= "set_mode" getter= "get_mode" enum= "AudioEffectDistortion.Mode" default= "0" >
2019-06-29 13:24:23 +00:00
Distortion type.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "post_gain" type= "float" setter= "set_post_gain" getter= "get_post_gain" default= "0.0" >
2019-06-29 13:24:23 +00:00
Increases or decreases the volume after the effect. Value can range from -80 to 24.
2017-09-12 20:42:36 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "pre_gain" type= "float" setter= "set_pre_gain" getter= "get_pre_gain" default= "0.0" >
2019-06-29 13:24:23 +00:00
Increases or decreases the volume before the effect. Value can range from -60 to 60.
2017-09-12 20:42:36 +00:00
</member>
</members>
<constants >
2017-11-24 22:16:30 +00:00
<constant name= "MODE_CLIP" value= "0" enum= "Mode" >
2017-09-16 16:47:19 +00:00
Digital distortion effect which cuts off peaks at the top and bottom of the waveform.
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_ATAN" value= "1" enum= "Mode" >
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_LOFI" value= "2" enum= "Mode" >
2017-09-16 16:47:19 +00:00
Low-resolution digital distortion effect. You can use it to emulate the sound of early digital audio devices.
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_OVERDRIVE" value= "3" enum= "Mode" >
2017-09-16 16:47:19 +00:00
Emulates the warm distortion produced by a field effect transistor, which is commonly used in solid-state musical instrument amplifiers.
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_WAVESHAPE" value= "4" enum= "Mode" >
2017-09-16 16:47:19 +00:00
Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound.
2017-09-15 23:46:14 +00:00
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>