Refactoring the wave.
No longer using deprecated math.log10