AKAmplitudeEnvelope

open class AKAmplitudeEnvelope : AKNode, AKToggleable, AKComponent, AKInput

Triggerable classic ADSR envelope

  • Lower and upper bounds for Attack Duration

    Declaration

    Swift

    public static let attackDurationRange: ClosedRange<Double>
  • Lower and upper bounds for Decay Duration

    Declaration

    Swift

    public static let decayDurationRange: ClosedRange<Double>
  • Lower and upper bounds for Sustain Level

    Declaration

    Swift

    public static let sustainLevelRange: ClosedRange<Double>
  • Lower and upper bounds for Release Duration

    Declaration

    Swift

    public static let releaseDurationRange: ClosedRange<Double>
  • Initial value for Attack Duration

    Declaration

    Swift

    public static let defaultAttackDuration: Double
  • Initial value for Decay Duration

    Declaration

    Swift

    public static let defaultDecayDuration: Double
  • Initial value for Sustain Level

    Declaration

    Swift

    public static let defaultSustainLevel: Double
  • Initial value for Release Duration

    Declaration

    Swift

    public static let defaultReleaseDuration: Double
  • Ramp Duration represents the speed at which parameters are allowed to change

    Declaration

    Swift

    @objc
    open dynamic var rampDuration: Double { get set }
  • Attack Duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var attackDuration: Double { get set }
  • Decay Duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var decayDuration: Double { get set }
  • Sustain Level

    Declaration

    Swift

    @objc
    open dynamic var sustainLevel: Double { get set }
  • Release Duration in seconds

    Declaration

    Swift

    @objc
    open dynamic var releaseDuration: Double { get set }
  • Tells whether the node is processing (ie. started, playing, or active)

    Declaration

    Swift

    @objc
    open dynamic var isStarted: Bool { get }
  • 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()