Once you arrive at a giant gate with buttons on the top, fire at the them in this order: blue, white, purple, white, purple. Note: This is part of the hymn "Amazing Grace".
Alternately, the code to get through the large gate with the buttons on top is white, purple, sand, purple, sand.