AKStereoOperation

open class AKStereoOperation: AKComputedParameter

Stereo version of AKComputedParameter

  • Redefining description to return the operation string

    Declaration

    Swift

    open var description: String
  • Create a mono signal by dropping the right channel

    Declaration

    Swift

    open func toMono() -> AKOperation
  • Create a mono signal by dropping the right channel

    Declaration

    Swift

    open func left() -> AKOperation
  • Create a mono signal by dropping the left channel

    Declaration

    Swift

    open func right() -> AKOperation
  • An operation is requiring a parameter to be stereo, which in this case, it is, so just return self

    Declaration

    Swift

    open func toStereo() -> AKStereoOperation
  • Default stereo input to any operation stack

    Declaration

    Swift

    open static var input = AKStereoOperation("((14 p) (15 p))")
  • Initialize the stereo operation with a Sporth string

    Declaration

    Swift

    public init(_ operationString: String)

    Parameters

    operationString

    Valid Sporth string (proceed with caution

  • Initialize the stereo operation

    Declaration

    Swift

    public init(module: String, setup: String = "", inputs: AKParameter...)

    Parameters

    module

    Sporth unit generator

    setup

    Any setup Sporth code that this operation may require

    inputs

    All the parameters of the operation

  • Helper function for addition

    Declaration

    Swift

    public static func + (first: AKStereoOperation, second: AKStereoOperation) -> AKStereoOperation

    Parameters

    first

    1st parameter

    second

    2nd parameter