             var adjustedMaximum: Double = 0.0
             if minimum == 0 { adjustedMinimum = 0.00000000001 }
             if maximum == 0 { adjustedMaximum = 0.00000000001 }
-            return log(input / adjustedMinimum) / log(adjustedMaximum / adjustedMinimum)//not working right for 0 values
+            return log(input / adjustedMinimum) / log(adjustedMaximum / adjustedMinimum) //not working right for 0 values
         }
     }
     

    }
    
    /// Start the fade WITH the offset
    public func start() { //starts the fade WITH the offset
        scheduleFade(0.0)
    }
    /// Start the fade WITHOUT the offset
    public func startImmediately() { //skips the offset
        //this starts the recurring timer
        let millis = NSDate().timeIntervalSince1970*1000
        print("starting fade \(millis) \(directionString)")

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