src/tempo/beattracking.c: fix rayleigh period clamping
src/tempo/beattracking.c: also empty output if bp = 0