how to make infinite

You need to set a new value to Wave Number every wave. You can also do it elsewhere.