I think figuring out how to make a jig to help you with this will save trouble over continually adjusting the depth of the cut. A wavy-walled jig that fits over your workpiece, depending on how big it is, might be an approach to this, although I have to admit I'm not sure how to make the router "follow" the wavy walls accurately.