     /// Instantiate the table as a sawtooth wave
     mutating func standardSawtoothWave() {
         values = [Float]()
-        let phsOfst = Int(phase*size)
-        for i in 0..<size {
-            values.append(-1.0 + 2.0*Float((i+phsOfst)%size)/Float(size))
+        let phaseOffset = Int(phase * size)
+        for i in 0 ..< size {
+            values.append(-1.0 + 2.0 * Float((i + phaseOffset) % size) / Float(size))
         }
     }
 
     /// Instantiate the table as a reverse sawtooth wave
     mutating func standardReverseSawtoothWave() {
         values = [Float]()
-        let phsOfst = Int(phase*size)
+        let phaseOffset = Int(phase * size)
         for i in 0..<size {
-            values.append(1.0 - 2.0*Float((i+phsOfst)%size)/Float(size))
+            values.append(1.0 - 2.0 * Float((i + phaseOffset) % size) / Float(size))
         }
     }
 
     /// Instantiate the table as a sine wave
     mutating func standardSineWave() {
         values = [Float]()
-        let phsOfst = Int(phase*size)
-        for i in 0..<size {
-            values.append(sin(2 * 3.14159265 * Float(i+phsOfst)/Float(size)))
+        let phaseOffset = Int(phase * size)
+        for i in 0 ..< size {
+            values.append(sin(2 * 3.14159265 * Float(i + phaseOffset) / Float(size)))
         }
     }
 

        values = [Float]()
        let slope = Float(2.0) / Float(size)
        for i in 0..<size {
            let phsOfst = Int(phase*size)
            if (i+phsOfst)%size < size / 2 {
                values.append(slope * Float((i+phsOfst)%size))
            } else {
                values.append(slope * Float((-i-phsOfst)%size) + 2.0)
            }
        }
    }

    mutating func standardTriangleWave() {
        values = [Float]()
        let slope = Float(4.0) / Float(size)
        let phaseOffset = Int(phase * size)
        for i in 0 ..< size {
            if (i + phaseOffset) % size < size / 2 {
                values.append(slope * Float((i + phaseOffset) % size) - 1.0)
            } else {
                values.append(slope * Float((-i - phaseOffset) % size) + 3.0)
            }
        }
    }
