I need make a sound with duration very short.
My limit is 0.02272728.......
I need 0.0001 or more short.
SOUND x%, 0.00001
Moderators:Administrator, Global Moderator
-
- QBasic God
- Posts:166
- Joined:Tue Mar 25, 2003 12:45 am
- Location:U.S.A.
- Contact:
Re: SOUND x%, 0.00001
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
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
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!
- frankiebaby
- Global Moderator
- Posts:95
- Joined:Tue Apr 30, 2002 1:38 am
- Location:Pennsylvania
- Contact:
Re: SOUND x%, 0.00001
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.