AKRolandTB303Filter

open class AKRolandTB303Filter : AKNode, AKToggleable, AKComponent, AKInput

Emulation of the Roland TB-303 filter

  • Lower and upper bounds for Cutoff Frequency

    Declaration

    Swift

    public static let cutoffFrequencyRange: ClosedRange<Double>
  • Lower and upper bounds for Resonance

    Declaration

    Swift

    public static let resonanceRange: ClosedRange<Double>
  • Lower and upper bounds for Distortion

    Declaration

    Swift

    public static let distortionRange: ClosedRange<Double>
  • Lower and upper bounds for Resonance Asymmetry

    Declaration

    Swift

    public static let resonanceAsymmetryRange: ClosedRange<Double>
  • Initial value for Cutoff Frequency

    Declaration

    Swift

    public static let defaultCutoffFrequency: Double
  • Initial value for Resonance

    Declaration

    Swift

    public static let defaultResonance: Double
  • Initial value for Distortion

    Declaration

    Swift

    public static let defaultDistortion: Double
  • Initial value for Resonance Asymmetry

    Declaration

    Swift

    public static let defaultResonanceAsymmetry: Double
  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Cutoff frequency. (in Hertz)

    Declaration

    Swift

    @objc
    open dynamic var cutoffFrequency: Double { get set }
  • Resonance, generally < 1, but not limited to it. Higher than 1 resonance values might cause aliasing, analogue synths generally allow resonances to be above 1.

    Declaration

    Swift

    @objc
    open dynamic var resonance: Double { get set }
  • Distortion. Value is typically 2.0; deviation from this can cause stability issues.

    Declaration

    Swift

    @objc
    open dynamic var distortion: Double { get set }
  • Asymmetry of resonance. Value is between 0-1

    Declaration

    Swift

    @objc
    open dynamic var resonanceAsymmetry: Double { get set }
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    @objc
    open dynamic var isStarted: Bool { get }
  • Initialize this filter node

    Declaration

    Swift

    @objc
    public init(
        _ input: AKNode? = nil,
        cutoffFrequency: Double = defaultCutoffFrequency,
        resonance: Double = defaultResonance,
        distortion: Double = defaultDistortion,
        resonanceAsymmetry: Double = defaultResonanceAsymmetry
        )

    Parameters

    input

    Input node to process

    cutoffFrequency

    Cutoff frequency. (in Hertz)

    resonance

    Resonance, generally < 1, but not limited to it. Higher than 1 resonance values might cause aliasing, analogue synths generally allow resonances to be above 1.

    distortion

    Distortion. Value is typically 2.0; deviation from this can cause stability issues.

    resonanceAsymmetry

    Asymmetry of resonance. Value is between 0-1

  • Function to start, play, or activate the node, all do the same thing

    Declaration

    Swift

    @objc
    open func start()
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    @objc
    open func stop()