AKCustomUgen

open class AKCustomUgen: NSObject

Custom Sporth Unit Generator (Ugen)

  • Name of the Ugen

    Declaration

    Swift

    open let name: String
  • String describing the arugments: f for float / s for string, e.g. fsf

    Declaration

    Swift

    open let argTypes: String
  • Custom object that may be passed in

    Declaration

    Swift

    open var userData: Any?
  • Callback / Closure / Function to be called

    Declaration

    Swift

    open let computeFunction: (AKCustomUgen, AKSporthStack, inout Any?) -> Void
  • The sporth stack

    Declaration

    Swift

    public var stack = AKSporthStack()
  • Initialize the custom unit generator

    Declaration

    Swift

    public init(name: String,
                    argTypes: String,
                    userData: Any? = nil,
                    computeFunction: @escaping (AKCustomUgen, AKSporthStack, inout Any?) -> Void)
  • Duplicate the Ugen

    Declaration

    Swift

    public func duplicate() -> AKCustomUgen
  • Executre the compute function

    Declaration

    Swift

    open let callComputeFunction: @convention(c) (AKCustomUgen) -> Void