adding a new beat at the correct location, and deleting the correct location beat