 
     func testEvaluateAutomationCurved() {
 
-        let curve = AKAutomationCurve(points: [Point(targetValue: 1, startTime: 0, rampDuration: 1.0, rampTaper: 0.5, rampSkew: 0.1)])
+        let curve = AKAutomationCurve(points: [Point(targetValue: 1,
+                                                     startTime: 0,
+                                                     rampDuration: 1.0,
+                                                     rampTaper: 0.5,
+                                                     rampSkew: 0.1)])
 
         let events = curve.evaluate(initialValue: 0,
                                     resolution: 0.1)

    func testReplaceAutomation() {

    {
        let curve = AKAutomationCurve(points: [ Point(targetValue: 440, startTime: 0, rampDuration: 0.1),
                                                Point(targetValue: 880, startTime: 1, rampDuration: 0.1),
                                                Point(targetValue: 440, startTime: 2, rampDuration: 0.1)])

        let events: [(Double, AUValue)] = [ (0.5, 100), (1.5, 200) ]

        let newCurve = curve.replace(range: 0.25 ... 1.75, withPoints: events)

        let expected = [ Point(targetValue: 440, startTime: 0, rampDuration: 0.1),
                         Point(targetValue: 100, startTime: 0.5, rampDuration: 0.01),
                         Point(targetValue: 200, startTime: 1.5, rampDuration: 0.01),
                         Point(targetValue: 440, startTime: 2, rampDuration: 0.1)]

        XCTAssertEqual(newCurve.points, expected)
        }();


        {
            let curve = AKAutomationCurve(points: [ Point(targetValue: 440, startTime: 0, rampDuration: 0.1),
                                                    Point(targetValue: 880, startTime: 1, rampDuration: 0.1),
                                                    Point(targetValue: 440, startTime: 2, rampDuration: 0.1)])

            let events: [(Double, AUValue)] = [ ]



            let newCurve = curve.replace(range: 0 ... 2, withPoints: events)

            let expected = [ Point(targetValue: 100,
                                   startTime: 0.5,
                                   rampDuration: 0.01),
                             Point(targetValue: 200,
                                   startTime: 1.5,
                                   rampDuration: 0.01)]

            XCTAssertEqual(newCurve.points, expected)
        }()
    }

    func testEvaluateAutomationLinear() {
        let curve = AKAutomationCurve(points: [Point(targetValue: 1,
                                                     startTime: 0,
                                                     rampDuration: 1.0)])

        let events = curve.evaluate(initialValue: 0, resolution: 0.5)

