QBasic Tutorial 25 - Sound And Music - QB64 - Ode To Joy - Beethoven

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 49

  • @rudramishra9369
    @rudramishra9369 4 роки тому +6

    Among all videos, I liked this video the most.

  • @amzitsolutions7965
    @amzitsolutions7965 2 роки тому +2

    This brings back memories. I think QBasic is still a very good program for kids to start learning programming.

  • @SchoolFreeware
    @SchoolFreeware  13 років тому +4

    @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.

  • @jw200
    @jw200 13 років тому +3

    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.

  • @channelkerr
    @channelkerr 4 роки тому +2

    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!

  • @JimGiant
    @JimGiant 5 років тому +19

    Me attempting to play an instrument:
    FOR x = 1 TO 5000
    SOUND (RND * 1000) + 200, (RND * 6) + 1
    NEXT x

  • @Nattakorps
    @Nattakorps 12 років тому +1

    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

  • @Kippykip
    @Kippykip 12 років тому +1

    mine has a speaker :D
    windows 7 has just messed up the beep.sys
    which may be the problem

  • @roboticsengineer7118
    @roboticsengineer7118 7 років тому +5

    can we record a sound and play it

    • @1xWertzui
      @1xWertzui 3 роки тому +2

      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.

    • @1xWertzui
      @1xWertzui 3 роки тому +1

      Or, you track down an already written subroutine doing exactly that, and incorporate it into your program. Good luck though.

  • @joncoish
    @joncoish 5 років тому +1

    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

    • @lordplenty
      @lordplenty 4 роки тому

      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.

  • @MrTdrew44
    @MrTdrew44 9 років тому +2

    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.

  • @aronpaul1771
    @aronpaul1771 3 роки тому

    HOW WILL WE DO SHARPS IN QB 1.1 PLS FIND AND TELL

  • @kumarnaresh4597
    @kumarnaresh4597 5 років тому

    Can you tell me write a program to produce sargam on computer in Qbasic

  • @MrJarbyJarb
    @MrJarbyJarb 11 років тому

    when i try to make it sharp it says illegal function call. what am i doing wrong!?!

  • @dzvxo
    @dzvxo 11 років тому +1

    By the way, instead of putting "p8" on the 3rd line, try putting "n8". It worked on my physical machine...

  • @Designartseller
    @Designartseller 13 років тому

    How do you disable a beep?

  • @druid8048
    @druid8048 11 років тому

    ya skachal etu programmu otkryivayou papku i tam u menya netu papki date. podskajite pochemu?

  • @peaceofsima7265
    @peaceofsima7265 3 роки тому +2

    Thank you...sir

  • @OfficialOthniel
    @OfficialOthniel 10 років тому +4

    this is remarkable :)

  • @40wattstudio41
    @40wattstudio41 5 років тому

    Very cool! I modified the first part to make a siren noise.

  • @csongorkada6888
    @csongorkada6888 10 років тому +1

    Is there a way to play files?

  • @sparkercomet
    @sparkercomet 11 років тому

    when I type in the sound command in QB64 a dialog box comes which say illegal command..help?

    • @banimalhalder723
      @banimalhalder723 3 роки тому +1

      When you are using the pet annoyer, make sure the lowest frequency is 37. any lower would lead to that dialog box appearing

  • @giocogames
    @giocogames 11 років тому

    So does the BEEP command use the buzzer on the motherboard?

    • @1xWertzui
      @1xWertzui 3 роки тому +1

      (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.

  • @reactionlover582
    @reactionlover582 3 роки тому

    Not working in mobile dosbox

    • @CopperSosiska12
      @CopperSosiska12 2 роки тому

      In the Magic DosBox settings, you can enable the PC-speaker function.

  • @RETROGAMINGTECHNO
    @RETROGAMINGTECHNO 10 років тому +3

    2:36 waiting to explode!

  • @hakonsoreide
    @hakonsoreide 7 років тому

    Interesting tutorial, though I have to mark you down a bit for the Ode to Joy not being played correctly.

  • @anixsharma7237
    @anixsharma7237 11 років тому

    you know to make programmes
    please make one programme

  • @shrikantkushwaha3502
    @shrikantkushwaha3502 5 років тому

    Good

  • @bubbleheadft
    @bubbleheadft 13 років тому +2

    HOLY SHIT

  • @edwardthepotato8750
    @edwardthepotato8750 9 років тому

    it doesn play anything

  • @reymicroc
    @reymicroc 2 роки тому

    would have more interesting to use sound instead of just using play

  • @sandwichtube
    @sandwichtube 12 років тому

    make a skillex song

  • @emittyarts
    @emittyarts 3 роки тому

    hay you will kill us with the sound

  • @riskidxer
    @riskidxer 6 років тому +1

    Likes a nokia composer monophonic ringtones for qbasic

  • @ICHSAN4444
    @ICHSAN4444 10 років тому

    lol, thank you