updated functionality of sine tone and freq ranges to be more dynamic