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.

  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open dynamic var rampTime: Double = AKSettings.rampTime
  • 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 = 0
  • Amplitude.

    Declaration

    Swift

    @objc open dynamic var amplitude: Double = 1
  • 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 = 1
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    @objc open dynamic var isStarted: Bool
  • Initialize this Phase-Locked Vocoder node

    Declaration

    Swift

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