scdoc: Pseg: duration pattern in beats not seconds

fix #340
scdoc: add thisFunctionDef/thisFunction
documentation: improve thisFunction and thisFunctionDef