AKPhaseLockedVocoder

open class AKPhaseLockedVocoder : AKNode, AKComponent

This is a phase locked vocoder. It has the ability to play back an audio file loaded into an ftable like a sampler would. Unlike a typical sampler, mincer allows time and pitch to be controlled separately.

  • Declaration

    Swift

    public typealias AKAudioUnitType = AKPhaseLockedVocoderAudioUnit
  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Position in time. When non-changing it will do a spectral freeze of a the current point in time.

    Declaration

    Swift

    @objc
    open dynamic var position: Double { get set }
  • Amplitude.

    Declaration

    Swift

    @objc
    open dynamic var amplitude: Double { get set }
  • Pitch ratio. A value of 1 is normal, 2 is double speed, 0.5 is halfspeed, etc.

    Declaration

    Swift

    @objc
    open dynamic var pitchRatio: 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 Phase-Locked Vocoder node

    Declaration

    Swift

    @objc
    public init(
        file: AVAudioFile,
        position: Double = 0,
        amplitude: Double = 1,
        pitchRatio: Double = 1)

    Parameters

    file

    Location of the audio file to use.

    position

    Position in time. When non-changing it will do a spectral freeze of a the current point in time.

    amplitude

    Amplitude.

    pitchRatio

    Pitch ratio. A value of 1 is normal, 2 is double speed, 0.5 is halfspeed, etc.

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