             var k1 = (Double(index1) * df - f) / df
             var s = s0 * sin(M_1_PI * k0) / k0 + s1 * sin(M_1_PI * k1) / k1
 
-            //return (s0 + s1) / 3.0
             return s / 5.0
         }
 

    let minFrequency: Double = 20
    let maxFrequency: Double = 20000
    let discreteFrequency: Double = 44100.0
    let discreteTime: Double = 1.0 / 44100.0

    var frequency: Double = 440
    var leftFrequency: Double = 400
    var rightFrequency: Double = 500


    }

    func Push(sample: [Double]) {
        samples += sample
        samples.removeRange(Range(start: 0, end: sample.count))

        doubleWave += sample
        doubleWave.removeRange(Range(start: 0, end: sample.count))
    }

    func setFrequency(var newFrequency: Double) {

        if newFrequency < minFrequency {
            newFrequency = minFrequency
        }
