change wave from sine to sawtooth, refactoor input range change event