Some machines have a serpentine stitch that does a wave, but the length and width are limited by the size the machine allows. I have used the painters tape method to define the width and then put a pin at regular intervals to make wider and longer waves. Then I use the bar that comes with the machine to set how far apart I want to echo the waves. I also have done the waves free hand deliberately not echoing the stitching to make it more interesting.