How are musical scores written to synchronize to films?