added static functions
added beat stuff and moved it to clip