Hacked together a fix for a amplitude problem with the saw function