sing.icn: Program to sing The Twelve Days of Christmas

September 14, 1990; Frank J. Lhota
This file is in the public domain.
   This program is an Icon adaptation of a SNOBOL program by Mike
Shapiro in the book The SNOBOL4 Programming Language.  The procedure
sing writes the lyrics to the song, "The Twelve Days of Christmas"
to the singer parameter.  "singer" can be any file open for output,
but it would be especially nice to send the lyrics to a speech
synthesiser (perhaps via a pipe).

   The algorithm used can be adapted to other popular songs, such as
"Old McDonald had a Farm".

Reference:

   "The SNOBOL 4 Programming Language" by Griswold, Poage, and
Polonsky, 2nd ed. Englewood Cliffs, N.J. Prentiss-Hall, Inc. 1971.

Source code | Program Library Page | Icon Home Page