Check out @crkcity's original project: https://scratch.mit.edu/projects/1078604285
For some reason, the times between the bells in the original project differed by several seconds on my computer, so I rewrote the code in my own way, and now it works*. On my computer at least. * The times may differ depending on the acceleration value. This is probably due to rounding errors. I originally used the timer to measure the time between bells, but since Scratch does not necessarily run at a constant speed, while the timer does (it is based on the device's system clock), it was a very inaccurate method. So I switched to using a variable, incrementing by 1/30 s per screen refresh (Scratch is supposed to run at 30 frames per second).