AKADSRView

@IBDesignable open class AKADSRView: UIView

A click and draggable view of an ADSR Envelope (Atttack, Decay, Sustain, Release)

  • Attack time in seconds, Default: 0.1

    Declaration

    Swift

    @IBInspectable open var attackDuration: Double = 0.100
  • Type of function to call when values of the ADSR have changed

    Declaration

    Swift

    public typealias ADSRCallback = (Double, Double, Double, Double) -> Void
  • Decay time in seconds, Default: 0.1

    Declaration

    Swift

    @IBInspectable open var decayDuration: Double = 0.100
  • Sustain Level (0-1), Default: 0.5

    Declaration

    Swift

    @IBInspectable open var sustainLevel: Double = 0.50
  • Release time in seconds, Default: 0.1

    Declaration

    Swift

    @IBInspectable open var releaseDuration: Double = 0.100
  • Function to call when the values of the ADSR changes

    Declaration

    Swift

    open var callback: ADSRCallback?
  • / Color Declarations

    Declaration

    Swift

    @IBInspectable open var attackColor: UIColor = #colorLiteral(red: 0.767, green: 0.000, blue: 0.000, alpha: 1.000)
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView
  • Undocumented

    Declaration

    Swift

    @IBDesignable open class AKADSRView: UIView