AKParameter

public protocol AKParameter: CustomStringConvertible

AKParameters are simply arguments that can be passed into AKComputedParameters These could be numbers (floats, doubles, ints) or other operations themselves Since parameters can be audio in mono or stereo format, the protocol requires that an AKParameter defines method to switch between stereo and mono

  • toMono() Default implementation

    Require a function to produce a mono operation regarless of the mono/stereo nature of the parameter

    Default Implementation

    Most parameters are mono, so the default is just to return the parameter wrapped in a mono operation

    Declaration

    Swift

    func toMono() -> AKOperation
  • toStereo() Default implementation

    Require a function to produce a stereo operation regardless of the mono/stereo nature of the parameter

    Default Implementation

    Most parameters are mono, so the dault is to duplicate the parameter in both stereo channels

    Declaration

    Swift

    func toStereo() -> AKStereoOperation