Math

  • Performs absolute value on the operation

    Declaration

    Swift

    public func abs(_ parameter: AKOperation) -> AKOperation

    Parameters

    parameter

    AKComputedParameter to operate on

  • Performs floor calculation on the operation

    Declaration

    Swift

    public func floor(_ operation: AKOperation) -> AKOperation

    Parameters

    operation

    AKComputedParameter to operate on

  • Returns the fractional part of the operation (as opposed to the integer part)

    Declaration

    Swift

    public func fract(_ operation: AKOperation) -> AKOperation

    Parameters

    operation

    AKComputedParameter to operate on

  • Performs natural logarithm on the operation

    Declaration

    Swift

    public func log(_ operation: AKOperation) -> AKOperation

    Parameters

    operation

    AKComputedParameter to operate on

  • Performs Base 10 logarithm on the operation

    • parmeter operation: AKComputedParameter to operate on

    Declaration

    Swift

    public func log10(_ operation: AKOperation) -> AKOperation
  • Rounds the operation to the nearest integer

    Declaration

    Swift

    public func round(_ operation: AKOperation) -> AKOperation

    Parameters

    operation

    AKComputedParameter to operate on

  • Upper bound of a duration, in beats

    Declaration

    Swift

    public func ceil(_ duration: AKDuration) -> AKDuration

    Parameters

    duration

    AKDuration

  • Mix together two parameters

    Declaration

    Swift

    public func mixer(_ first: AKParameter, _ second: AKParameter, balance: AKParameter = 0.5) -> AKOperation

    Parameters

    first

    First parameter

    second

    Second parameter

    balance

    Value from zero to one indicating balance between first (0) and second (1) (Default: 0.5)