Author |
Message |
Deuce
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
ericfourfour
|
Posted: 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). |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
StealthArcher
![](http://compsci.ca/v3/uploads/user_avatars/18949255664b176c4f1481b.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
ericfourfour
|
|
|
|
![](images/spacer.gif) |
|