     @objc func updateFadeFromCADTimer() {
         let direction: Double = (initialVolume > finalVolume ? 1.0 : -1.0)
         let millis = NSDate().timeIntervalSince1970*1000
-        print("updatingFade fade \(millis) - \(stepCounter) \(directionString)")
+        //print("updatingFade fade \(millis) - \(stepCounter) \(directionString)")
         if numberOfSteps == 0 {
             endFade()
         } else if stepCounter <= numberOfSteps {

import Foundation

public enum CurveType {
    case Linear, EqualPower, Exponential
    
    public static func fromString(curve: String) -> CurveType {


            case .EqualPower:
                //direction will be negative if going up
                scaledControlAmount = pow((0.5 + 0.5 * direction * cos(π * controlAmount)), 0.5)
        
            case .SCurve:
                //direction will be negative if going up
                scaledControlAmount = pow((0.5 + 0.5 * direction * cos(π * controlAmount)), 1)
            }
        
            output!.gain = scaledControlAmount
            stepCounter += 1
        } else {
