AKRhodesPiano

open class AKRhodesPiano: AKNode, AKToggleable, AKComponent

STK RhodesPiano

  • Four letter unique description of the node

    Declaration

    Swift

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

    Declaration

    Swift

    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

    open dynamic var frequency: Double = 110
  • 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 RhodesPiano model

    • Parameters:
      • frequency: Variable frequency. Values less than the initial frequency will be doubled until it is greater than that.
      • amplitude: Amplitude

    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 - Parameters: - frequency: Frequency in Hz - amplitude amplitude: Volume

    Declaration

    Swift

    open func trigger(frequency: Double, amplitude: Double = 1)

    Parameters

    frequency

    Frequency in Hz

    amplitude amplitude

    Volume

  • 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()