AKPitchShifter

open class AKPitchShifter: AKNode, AKToggleable, AKComponent

Faust-based pitch shfiter

  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription = AudioComponentDescription(effect: "pshf")
  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Pitch shift (in semitones)

    Declaration

    Swift

    open dynamic var shift: Double = 0
  • Window size (in samples)

    Declaration

    Swift

    open dynamic var windowSize: Double = 1_024
  • Crossfade (in samples)

    Declaration

    Swift

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

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize this pitchshifter node

    • Parameters:
      • input: Input node to process
      • shift: Pitch shift (in semitones)
      • windowSize: Window size (in samples)
      • crossfade: Crossfade (in samples)

    Declaration

    Swift

    public init(
            _ input: AKNode?,
            shift: Double = 0,
            windowSize: Double = 1_024,
            crossfade: Double = 512)

    Parameters

    input

    Input node to process

    shift

    Pitch shift (in semitones)

    windowSize

    Window size (in samples)

    crossfade

    Crossfade (in samples)

  • 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()