Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Mode
AudioEffectDistortion.swift:19enum Mode
Cases
case clip
Digital distortion effect which cuts off peaks at the top and bottom of the waveform.
case atan
case lofi
Low-resolution digital distortion effect (bit depth reduction). You can use it to emulate the sound of early digital audio devices.
case overdrive
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.case waveshape
Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound.
Other members in extension
Type members
Instance members
var drive: Double
Distortion power. Value can range from 0 to 1.
var keepHfHz: Double
High-pass filter, in Hz. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000.
var mode: AudioEffectDistortion.Mode
Distortion type.
var postGain: Double
Increases or decreases the volume after the effect, in decibels. Value can range from -80 to 24.
var preGain: Double
Increases or decreases the volume before the effect, in decibels. Value can range from -60 to 60.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.