     mutating func standardSineWave() {
         let phaseOffset = Int(phase * count)
         for i in indices {
-            values[i] = sin(2 * 3.14159265 * Float(i + phaseOffset) / Float(count))
+            values[i] = Float(sin(2 * 3.14159265 * Float(i + phaseOffset) / 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 positiveSineWave() {
        let phaseOffset = Int(phase * count)
        for i in indices {
            values[i] = Float(0.5 + 0.5 * sin(2 * 3.14159265 * Float(i + phaseOffset) / Float(count)))
        }
    }
}
