     mutating func positiveReverseSawtoothWave() {
         let phaseOffset = Int(phase * count)
         for i in indices {
-            values[i] = 1.0 - Float((i + phaseOffset) % count) / Float(count)
+            values[i] = Float(1.0) - Float((i + phaseOffset) % count) / Float(count)
         }
     }
 

    mutating func standardSawtoothWave() {
        let phaseOffset = Int(phase * count)
        for i in indices {
            values[i] = -1.0 + 2.0 * Float((i + phaseOffset) % count) / Float(count)
        }
    }


    mutating func standardSineWave() {
        let phaseOffset = Int(phase * count)
        for i in indices {
            values[i] = Float(sin(2 * 3.14159265 * Float(i + phaseOffset) / Float(count)))
        }
    }

