Made inverted sawtooth wave work, fixes for freq tables.