AKCustomUgen

@objc
open class AKCustomUgen : NSObject

Custom Sporth Unit Generator (Ugen)

  • Name of the Ugen

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

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

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

    Declaration

    Swift

    @objc
    open let callComputeFunction: (AKCustomUgen) -> Void