Category : Music and Digitized Voice
Archive   : POLYMUS.ZIP
Filename : SONGPLAY.C
/* Written in DeSmet C and placed in the public domain
by: Mike Talvola
Agoura Hills, CA
Permission is hereby granted to copy, modify, and
otherwise use this program except for profit.
Inspired by "Polyphonic Music on the IBM PC"
by: Steve Muenter */
#define TRUE 1
#define FALSE 0
int tune[5000];
char name[80];
int tfile;
main(argc,argv)
int argc; /* arg count */
char **argv; /* arg vector */
{
int tindex;
if (argc != 2) {
printf("Usage: songplay songname\n");
exit(1);
}
strcpy(name, *++argv);
strcat(name, ".POL");
tfile = fopen(name, "r");
if (tfile == 0) {
printf("Can't open song file '%s'.\n", name);
exit(2);
}
fgets(name, 80, tfile);
tindex = 0;
while (fscanf(tfile, "%d", &tune[tindex++]) != -1);
close(tfile);
tri(&tune[1]);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/