ts %.s|awk '$1-t[k]>5{k=r=0}{t[++k]=$1}k>5{r=k-5}k>1{printf"Tempo : %i bpm",60*(k-r-1)/($1-t[r+1])}'