Added soft halting to tone generator