@crazywiiaddict Yes, most new computers do not come with PC Speakers any more. DOSBox or QB64 is needed to make sounds and music when using the QBasic language.
Good ol' days, i remember when i started with programming, found a QB and did a similar program. I just used help files, i didn't have any tuts, but i was very happy with the result. My own program working and making sound. Sometimes i even managed to hang my PC but it was fun.
That frequency sweep is way cool. You can do something similar in PowerShell too: 300..8000 | % {[console]::beep($_,80) } Unfortunately it's not a smooth sweep like good ol' qbasic!
a lot of motherboards DO come with the pins for a pc speaker though, you can yank one out of any old computer and put it in your tower if you so choose
Short answer: No. Long answer: It's a DOS program, you know, an OS for oldschool IBM PCs. Those had no sound hardware other than the beeper. The only way you had better sound is by buying a sound card (like the Creative Lab's SoundBlaster)(which DOSbox does emulate though). But QBASIC does not support it with native commands. To program the sound card, you got to have an extensive knowledge on its features and registers. Then in QBASIC, you have to POKE specific bytes and bits into the sound card's registers to make it do anything. But that's akin to machine language hardware programming.
I preferer TB or Power Basic, but those are largely the same. A lot of programming of sound effects in basic was helpful when I was programming piezo-electric speakers driven with square wave function on Arduino boards.
How would you go about doing this in Python with only winsound beeps? i currently do not know if its possible to play correct notes or if it only goes by the frequency and duration.
(late answer is late) Theoretically, yes, at least it did in the old days. But not if you run QBASIC in DOSbox, or use QB64, then it will use the regular sound output. And if you run QBASIC natively in modern Windows, you won't hear anything because Windows does not let you access the buzzer, even if there is one at all.
Among all videos, I liked this video the most.
This brings back memories. I think QBasic is still a very good program for kids to start learning programming.
@crazywiiaddict Yes, most new computers do not come with PC Speakers any more. DOSBox or QB64 is needed to make sounds and music when using the QBasic language.
Good ol' days, i remember when i started with programming, found a QB and did a similar program.
I just used help files, i didn't have any tuts, but i was very happy with the result.
My own program working and making sound.
Sometimes i even managed to hang my PC but it was fun.
That frequency sweep is way cool. You can do something similar in PowerShell too:
300..8000 | % {[console]::beep($_,80) }
Unfortunately it's not a smooth sweep like good ol' qbasic!
Me attempting to play an instrument:
FOR x = 1 TO 5000
SOUND (RND * 1000) + 200, (RND * 6) + 1
NEXT x
lmfao
a lot of motherboards DO come with the pins for a pc speaker though, you can yank one out of any old computer and put it in your tower if you so choose
mine has a speaker :D
windows 7 has just messed up the beep.sys
which may be the problem
can we record a sound and play it
Short answer: No.
Long answer: It's a DOS program, you know, an OS for oldschool IBM PCs. Those had no sound hardware other than the beeper. The only way you had better sound is by buying a sound card (like the Creative Lab's SoundBlaster)(which DOSbox does emulate though). But QBASIC does not support it with native commands. To program the sound card, you got to have an extensive knowledge on its features and registers. Then in QBASIC, you have to POKE specific bytes and bits into the sound card's registers to make it do anything. But that's akin to machine language hardware programming.
Or, you track down an already written subroutine doing exactly that, and incorporate it into your program. Good luck though.
I used to love programing in qbasic. I once programmed the bass part for the song Leave that Thing Along by Rush in qbasic :P
I preferer TB or Power Basic, but those are largely the same. A lot of programming of sound effects in basic was helpful when I was programming piezo-electric speakers driven with square wave function on Arduino boards.
How would you go about doing this in Python with only winsound beeps? i currently do not know if its possible to play correct notes or if it only goes by the frequency and duration.
fuck python
HOW WILL WE DO SHARPS IN QB 1.1 PLS FIND AND TELL
Can you tell me write a program to produce sargam on computer in Qbasic
when i try to make it sharp it says illegal function call. what am i doing wrong!?!
By the way, instead of putting "p8" on the 3rd line, try putting "n8". It worked on my physical machine...
How do you disable a beep?
ya skachal etu programmu otkryivayou papku i tam u menya netu papki date. podskajite pochemu?
Thank you...sir
this is remarkable :)
Very cool! I modified the first part to make a siren noise.
Is there a way to play files?
Csongor Kada you can write a way
In the year '99 I was further than this.
when I type in the sound command in QB64 a dialog box comes which say illegal command..help?
When you are using the pet annoyer, make sure the lowest frequency is 37. any lower would lead to that dialog box appearing
So does the BEEP command use the buzzer on the motherboard?
(late answer is late) Theoretically, yes, at least it did in the old days. But not if you run QBASIC in DOSbox, or use QB64, then it will use the regular sound output. And if you run QBASIC natively in modern Windows, you won't hear anything because Windows does not let you access the buzzer, even if there is one at all.
Not working in mobile dosbox
In the Magic DosBox settings, you can enable the PC-speaker function.
2:36 waiting to explode!
Interesting tutorial, though I have to mark you down a bit for the Ode to Joy not being played correctly.
you know to make programmes
please make one programme
Good
HOLY SHIT
it doesn play anything
maybe you didn't type it corectly
would have more interesting to use sound instead of just using play
make a skillex song
hay you will kill us with the sound
Likes a nokia composer monophonic ringtones for qbasic
Yes.
lol, thank you