virtualx-engine/doc/classes/AudioEffectDistortion.xml

51 lines
2.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
2018-02-27 13:57:10 +01:00
<class name="AudioEffectDistortion" inherits="AudioEffect" category="Core" version="3.0.2">
<brief_description>
2017-09-16 18:47:19 +02:00
Adds a Distortion audio effect to an Audio bus.
Modify the sound to make it dirty.
</brief_description>
<description>
2017-10-14 12:45:26 +02:00
Modify the sound and make it dirty. Different types are available : clip, tan, lofi (bit crushing), overdrive, or waveshape.
2017-09-16 18:47:19 +02: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.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
</methods>
<members>
<member name="drive" type="float" setter="set_drive" getter="get_drive">
2017-09-16 18:47:19 +02:00
Distortion power. Value can range from 0 to 1. Default value: [code]0[/code].
</member>
<member name="keep_hf_hz" type="float" setter="set_keep_hf_hz" getter="get_keep_hf_hz">
2017-09-16 18:47:19 +02:00
High-pass filter. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000. Default value: [code]16000[/code].
</member>
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="AudioEffectDistortion.Mode">
2017-09-16 18:47:19 +02:00
Distortion type. Default value: [code]MODE_CLIP[/code].
</member>
<member name="post_gain" type="float" setter="set_post_gain" getter="get_post_gain">
2017-09-16 18:47:19 +02:00
Increases or decreases the volume after the effect. Value can range from -80 to 24. Default value: [code]0[/code].
</member>
<member name="pre_gain" type="float" setter="set_pre_gain" getter="get_pre_gain">
2017-09-16 18:47:19 +02:00
Increases or decreases the volume before the effect. Value can range from -60 to 60. Default value: [code]0[/code].
</member>
</members>
<constants>
2017-11-24 23:16:30 +01:00
<constant name="MODE_CLIP" value="0" enum="Mode">
2017-09-16 18:47:19 +02:00
Digital distortion effect which cuts off peaks at the top and bottom of the waveform.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="MODE_ATAN" value="1" enum="Mode">
</constant>
2017-11-24 23:16:30 +01:00
<constant name="MODE_LOFI" value="2" enum="Mode">
2017-09-16 18:47:19 +02:00
Low-resolution digital distortion effect. You can use it to emulate the sound of early digital audio devices.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="MODE_OVERDRIVE" value="3" enum="Mode">
2017-09-16 18:47:19 +02:00
Emulates the warm distortion produced by a field effect transistor, which is commonly used in solid-state musical instrument amplifiers.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="MODE_WAVESHAPE" value="4" enum="Mode">
2017-09-16 18:47:19 +02:00
Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound.
</constant>
</constants>
</class>