AKShaker

open class AKShaker: AKNode, AKToggleable, AKComponent

STK Shaker

  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    open dynamic var rampTime: Double = AKSettings.rampTime
  • Undocumented

    Declaration

    Swift

    open class AKShaker: AKNode, AKToggleable, AKComponent
  • Amplitude

    Declaration

    Swift

    open dynamic var amplitude: Double = 0.5
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    open dynamic var isStarted: Bool
  • Initialize the STK Shaker model

    • Parameters:
      • amplitude: Overall level

    Declaration

    Swift

    public init(type: AKShakerType = .maraca, amplitude: Double = 0.5)

    Parameters

    amplitude

    Overall level

  • Trigger the sound with an optional set of parameters - amplitude amplitude: Volume

    Declaration

    Swift

    open func trigger(amplitude: Double = 0.5)
  • Function to start, play, or activate the node, all do the same thing

    Declaration

    Swift

    open func start()
  • Function to stop or bypass the node, both are equivalent

    Declaration

    Swift

    open func stop()