merge fill_sinewave