Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pong collision note???
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Deuce




PostPosted: Fri Jan 18, 2008 9:11 am   Post subject: Pong collision note???

For a final project in my compsci class, my partner and myself redid the classic pong......with some new additions of course. In the old version of pong there was that signature note on collision between the ball and paddle. Anybody know what note it was or better yet have a file of it?

Thanks,
Deuce
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Jan 18, 2008 10:00 am   Post subject: RE:Pong collision note???

I don't know what note it is, but you don't need a file for it -- you can use the play command instead. Like so.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
ericfourfour




PostPosted: Fri Jan 18, 2008 3:36 pm   Post subject: RE:Pong collision note???

Probably an A4 (440Hz). That's used for my tuning fork and it's marked on a few keyboard-like instruments at school. It's commonly used probably because it's frequency is a whole number and it is not too close the the limits for the human ear (20-20 000Hz).
Tony




PostPosted: Fri Jan 18, 2008 3:44 pm   Post subject: RE:Pong collision note???

if you want to play a frequency instead of a note, then, I think, it's the sound command.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
StealthArcher




PostPosted: Fri Jan 18, 2008 4:03 pm   Post subject: Re: Pong collision note???

sound(440, 1000) Type this whereever you want to play it.

To explain in detail:

sound(freq,duration:int)
Creates a sound of frequency freq, for the duration in milliseconds stated by duration.
ericfourfour




PostPosted: Fri Jan 18, 2008 7:56 pm   Post subject: RE:Pong collision note???

I made a sound finder: http://compsci.ca/v3/viewtopic.php?p=152465. Just use that to find the pong sound.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: