AudioKit / AudioKitUI

Controls and Visualization for AudioKit apps
MIT License
200 stars 53 forks source link

ADSRView is not scalable #6

Closed transat closed 3 years ago

transat commented 3 years ago

Hi. just tried out the ADSRView and it appears to be of a fixed size (440px wide I believe). Am I missing something?

aure commented 3 years ago

Init it with a frame of whatever you want:

    /// Initialize with size and callback
    /// - Parameters:
    ///   - frame: View size
    ///   - callback: Callback to call as values change
    public init(frame: CGRect = CGRect(width: 440, height: 150),
                callback: @escaping ADSRCallback) {
        self.callback = callback
        super.init(frame: frame)
    }