I would like to control the radius of a Curve using a Sine Wave, such that the diameter of the resulting mesh gets thicker and thinner along the length of the Curve.
I've managed to achieve this with the following node set up. (Apologies for the multiple images as I don't know how to take a high-resolution screenshot that captures the entire node group.)
(.blend file also available here).
However, I would like to be able to introduce flat spaces between each 'wave' on the Curve, and control the width of each space.
Here is a very rough approximation of what I'm trying to achieve:
I did find this question and answer that seems close to what I'm trying to achieve (converting a Mesh Line to the waveform I'm trying to create), but I couldn't figure out how to apply the information in this post to my scenario.
I have been experimenting with introducing the Clamp, Maximum and Minimum nodes into the tree at different places, but haven't quite been able to get the effect I'm looking for.