How to convert a square wave to a sine wave?

 

v20240901