Hi Roxana @ox .
If you feed the Musgrave Texture through a Color Ramp (new spelling), then the output is automatically Clamped to a [0, 1] range.
You can then Multiply the result of the Color Ramp with the Wave Texture, where the Color Ramp is 0, the result will be black and where it is 1, it will be the unchanged Wave Texture.