Algorithm for creating gregorian chant melodies from a latin text.