View Single Post
  #2  
Old April 2nd, 2008, 01:31 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: OT: An odd little question

Its got a speaker, so its just a matter of running the thing.
Do you have a compiler and a hello world program?

Worst case, you can have your program set the speaker's IO line high and low at the appropriate frequency (yay for delay loops!)

Have a function that takes a pitch and a duration, and emits the appropriate tone.

[cut for spoilerage]

Then have your main loop call it repeatedly with the appropriate values for something recognizable, perhaps a famous clip from Eine kleine Nachtmusik, or the theme to Rocky or Jaws.

Figure out what your prof's favorite music is, and find some sheet music for the chorus.

You've got a speaker, so you could have it recording the input to memory and then get an instant replay of the last N seconds when you press one of the buttons.
Reply With Quote