Filtered square wave