.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.