AKRolandTB303Filter

open class AKRolandTB303Filter: AKNode, AKToggleable, AKComponent

Emulation of the Roland TB-303 filter

  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Cutoff frequency. (in Hertz)

    Declaration

    Swift

    open dynamic var cutoffFrequency: Double = 500
  • 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

    open dynamic var resonance: Double = 0.5
  • Distortion. Value is typically 2.0; deviation from this can cause stability issues.

    Declaration

    Swift

    open dynamic var distortion: Double = 2.0
  • Asymmetry of resonance. Value is between 0-1

    Declaration

    Swift

    open dynamic var resonanceAsymmetry: Double = 0.5
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize this filter node

    • 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

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            cutoffFrequency: Double = 500,
            resonance: Double = 0.5,
            distortion: Double = 2.0,
            resonanceAsymmetry: Double = 0.5)

    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

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

    Declaration

    Swift

    open func stop()