AKFlute

open class AKFlute: AKNode, AKToggleable, AKComponent

STK Flutee

  • Four letter unique description of the node

    Declaration

    Swift

    public static let ComponentDescription = AudioComponentDescription(generator: "flut")
  • Ramp Time represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc open dynamic var rampTime: Double = AKSettings.rampTime
  • Variable frequency. Values less than the initial frequency will be doubled until it is greater than that.

    Declaration

    Swift

    @objc open dynamic var frequency: Double = 110
  • Amplitude

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open dynamic var isStarted: Bool
  • Initialize the STK Flute model

    Declaration

    Swift

    public init(
            frequency: Double = 440,
            amplitude: Double = 0.5)

    Parameters

    frequency

    Variable frequency. Values less than the initial frequency will be doubled until it is greater than that.

    amplitude

    Amplitude

  • Trigger the sound with an optional set of parameters

    • frequency: Frequency in Hz
      • amplitude amplitude: Volume

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @objc open func stop()