Computer Science Canada

frequencies (sound command) I'm LOST!

Author:  cutiegirl_14_16 [ Mon Apr 21, 2003 8:34 pm ]
Post subject:  frequencies (sound command) I'm LOST!

how do u use the sound command?
I put sound (261.63,4) to play C for 4 seconds because I thought that you put sound (frequency,duration:int)

can somebody tell me what I'm doing wrong plz!

Author:  Tony [ Mon Apr 21, 2003 8:52 pm ]
Post subject: 

not quite. First both parameters are integers, so its 261, not 261.63.

second of all, the duration is in milliseconds (same as delay) so 4 seconds would be 4000, not 4.



Author:  Prince [ Mon Apr 21, 2003 9:34 pm ]
Post subject: 

is there a max frequency that u could get out of this? it seems pretty cool (hey i learned sumthin new today Very Happy)

Author:  Prince [ Mon Apr 21, 2003 9:37 pm ]
Post subject: 

nvm, i think i found the answer (i think its 20000)

Author:  Tony [ Mon Apr 21, 2003 10:29 pm ]
Post subject: 

i think its bad for your ears if you listen to it. You should stick to 1-1000 range, not higher. But up to you really.