src/tempo/tempo.c, src/onset/onset.c: fix _get_last_ms