Wave form generate program