AudioEffectDistortion
继承: AudioEffect
< Resource
< RefCounted
< Object
Adds a distortion audio effect to an Audio bus.
Modifies the sound to make it distorted.
描述
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.
属性
枚举
enum Mode:
Mode MODE_CLIP = 0
Digital distortion effect which cuts off peaks at the top and bottom of the waveform.
Mode MODE_ATAN = 1
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
Mode MODE_LOFI = 2
Low-resolution digital distortion effect (bit depth reduction). You can use it to emulate the sound of early digital audio devices.
Mode MODE_OVERDRIVE = 3
Emulates the warm distortion produced by a field effect transistor, which is commonly used in solid-state musical instrument amplifiers. The drive
property has no effect in this mode.
Mode MODE_WAVESHAPE = 4
Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound.
属性说明
float
drive = 0.0
Distortion power. Value can range from 0 to 1.
float
keep_hf_hz = 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.
Mode mode = 0
Distortion type.
float
post_gain = 0.0
Increases or decreases the volume after the effect, in decibels. Value can range from -80 to 24.
float
pre_gain = 0.0
Increases or decreases the volume before the effect, in decibels. Value can range from -60 to 60.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。