but even as gandalf and his companions came carrying the bier to the main door of the houses , they heard a great cry that went up from the field before the gate and rising shrill and piercing into the sky passed , and died away on the wind .