How did they measure pitch accurately?
They didn't! Pitch varied immensely from place to place, and by huge amounts. It wasn't until the 19th century that standards for pitch began to really kick in. Tuning forks - still with some variations - appeared in the 18th century.