Page 1 of 1

SOUND x%, 0.00001

Posted: Sun Aug 24, 2003 12:57 am
by Guest
I need make a sound with duration very short.
My limit is 0.02272728.......
I need 0.0001 or more short.

Re: SOUND x%, 0.00001

Posted: Sun Aug 24, 2003 2:09 am
by Dr_Davenstein
FOR Divisor% = 10 TO 10000
SOUND Divisor% + 27, Lent!
 Lent! = (18.2 / Divisor%)
 PRINT Lent!
NEXT

As you can see, QB can't play sounds that short. I don't know why, but it can't. Maybe the human ear just can't  hear it! I've never checked to see where it stops, but it is'nt nearly as low as what you posted.

::)

If you want good sound for Qb, try this, It stands for DirectSound for QB v2...
http://piptol.qbasicnews.com/files/ds4qbpp12.zip

or this...
It's called Bells, Whistles and Soundboards
I don't like this one, but hey, you might!
http://piptol.qbasicnews.com/files/bwsb.zip

Re: SOUND x%, 0.00001

Posted: Wed Aug 27, 2003 11:21 pm
by frankiebaby
I think you may need to use assembly. Look for assembly tutorials and interrupt lists for system hardware, it should be fairly easy, a few lines of assembly at the most, i'd imagine.