square wave library