Friday, February 19, 2010

RobotC Freebie

Ode to Joy in RobotC

int Notes[][]=
{
{695, 25},
{695, 25},
{788, 25},
{877, 25},
{877, 25},
{788, 25},
{695, 25},
{656, 25},
{590, 25},
{590, 25},
{656, 25},
{695, 25},
{695, 25},
{656, 13},
{656, 50},
{695, 25},
{695, 25},
{788, 25},
{877, 25},
{877, 25},
{788, 25},
{695, 25},
{656, 25},
{590, 25},
{590, 25},
{656, 25},
{695, 25},
{656, 25},
{590, 13},
{590, 50},
{656, 25},
{656, 25},
{695, 25},
{590, 25},
{656, 25},
{695, 13},
{788, 13},
{695, 25},
{590, 25},
{656, 25},
{695, 13},
{788, 13},
{695, 25},
{656, 25},
{590, 25},
{656, 25},
{440, 50},
{695, 25},
{695, 25},
{788, 25},
{877, 25},
{877, 25},
{788, 25},
{695, 25},
{656, 25},
{590, 25},
{590, 25},
{656, 25},
{695, 25},
{656, 25},
{590, 13},
{590, 50},
};

task main
{
for (int i=0; i<62; i++)
{
PlayTone(Notes[i][0], Notes[i][1]);
while(bSoundActive);
}
}

1 comment:

  1. Following the same direction from your post, there is another good freebie place that many are using ... talking about the badges from http://domof.com that show the pagerank and alexa popularity for any domain of interest simply by inserting some small code.

    ReplyDelete