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.

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

    Declaration

    Swift

    open 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

    open var position: Double = 0
  • Amplitude.

    Declaration

    Swift

    open var amplitude: Double = 1
  • Pitch ratio. A value of. 1 normal, 2 is double speed, 0.5 is halfspeed, etc.

    Declaration

    Swift

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

    Declaration

    Swift

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

    • Parameters:
      • audioFileURL: 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 normal, 2 is double speed, 0.5 is halfspeed, etc.

    Declaration

    Swift

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

    Parameters

    audioFileURL

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

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

    Declaration

    Swift

    open func stop()