Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
aure edited this page May 26, 2021 · 2 revisions

DiodeClipper

Clips a signal to a predefined limit, in a "soft" manner, using one of three methods.

public class DiodeClipper: Node 

Inheritance

Node

Initializers

init(_:cutoffFrequency:gain:)

Initialize this clipper node

public init(_ input: Node,
                cutoffFrequency: AUValue = cutoffFrequencyDef.defaultValue,
                gain: AUValue = gainDef.defaultValue
    ) 

Parameters

  • input: Input node to process
  • cutoffFrequency: Cutoff frequency
  • gain: Gain in dB

Properties

connections

Connected nodes

public var connections: [Node] 

avAudioNode

Underlying AVAudioNode

public var avAudioNode 

cutoffFrequencyDef

Specification for the cutoff frequency

public static let cutoffFrequencyDef 

cutoffFrequency

Filter cutoff frequency.

@Parameter(cutoffFrequencyDef) public var cutoffFrequency: AUValue

gainDef

Specification for the gain

public static let gainDef 

gain

Determines the amount of gain applied to the signal before waveshaping. A value of 1 gives slight distortion.

@Parameter(gainDef) public var gain: AUValue