r/QBmusic • • Apr 06 '22

Channel identity jingle for PBS [compatible with GW-BASIC]

1 Upvotes
56 PRINT ' compatible with GW-BASIC, QuickBasic, QBasic, and QB64
120 PRINT 'line number 56 above is an homage to Detroit's WTVS channel 56
130 PRINT " This is..."
143 PLAY "t160 n20 n20 p3" ' line number 143 is an homage to Mister Rogers
150 PRINT "         ÜÜÜÜÜÜÜ  ßÛÜ" 'Mister Rogers Neighborhood was on PBS.
160 PRINT "      ÜÛÛÛÛÛÛÛÛÛÛÜ ßÛÜ "
170 PRINT "     ÜÛÛÛÛÛÛÛÛ  ÛÛÜ ßÛÜ" ' this program was made for the /r/QBmusic
180 PRINT "     ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÜ ßÛÜ" ' subreddit on Reddit.com
190 PRINT "     ÛÛÛÛÛÛÛÛÛÛÛÛÛß  ÛÛß"
200 PRINT "      ÛÛÛÛÛÛÛÛÛÛÛÛ  ÜÛ" ' and it has also been made as a way to
210 PRINT "        ßßÛÛÛÛÛß   ÛÛ" ' celebrate 56 SUBSCRIBERS on another sub;
220 PRINT "          ÛÛÛÛÛ   ÛÛ" ' /r/QBprograms where programs can be shared.
230 PRINT ""
240 PRINT "        P ";
250 PLAY "t160 n20 p6"
260 PRINT "B ";
270 PLAY "n18 p6"
280 PRINT "S"
290 PLAY "t180 n20 n23 p5"
300 PRINT
310 PRINT " OOOOOOhhh WHHOOO"
320 PRINT
330 PLAY "n28 n26 p3"
340 PRINT
350 SOUND 500, 2
360 PRINT " * dog barks *"
370 PRINT
380 PRINT "          press any key to quit"
390 WHILE INKEY$ = ""
400 WEND

r/QBmusic • • Oct 02 '25

RICKROLL.BAS

3 Upvotes
10 ' nevergon.bas
20 PLAY "t114"
30 ' we're no strangers to love
40 PLAY "l8 deffge. l16 d l2 c. l4 p4."
50 ' you know the rules and so do i
60 PLAY "l8 ddef l4 d l8 c>c p8 c< l2 g "
70 ' a full commitment's what i'm thinking of
80 PLAY "l8 p4 ddefdfg p8 ed l4 c. p4."
90 ' you wouldn't get this from any other guy 
100 PLAY "l8 ddefd l4 c l8 ggga l4 g p4 "
110 ' i just wanna tell you how i'm feeling
120 PLAY "ml l2 f l8 f mn gaf ggga l4 gc p2"
130 ' gotta make you understand
140 PLAY "l8 defd p8 ga l4 g."
150 ' never gonna give you up
160 PLAY "l16 cdfd l8 a. a. l4 g."
170 ' never gonna let you down
180 PLAY "l16 cdfd l8 g. g. f. l16 e l8 d"
190 ' never gonna run around
200 PLAY "l16 cdfd l4 f l8 g e. l16 d l4 c"
210 ' and desert you
220 PLAY "l8 c l4 g l2 f"
230 ' never gonna make you cry
240 PLAY "l16 cdfd l8 a. a. l4 g."
250 ' never gonna say goodbye
260 PLAY "l16 cdfd l4 >c< l8 ef. l16 e l8 d"
270 ' never gonna tell a lie
280 PLAY "l16 cdfd l4 f l8 ge. l16 d l4 c "
290 ' and hurt you
300 PLAY "l8 c l4 g l2 f p4"

r/QBmusic • • May 22 '22

A PLAY string tester using a command line interface with a few commands for those who prefer the command line method of testing PLAY

1 Upvotes
'
'       ====COMMAND LINE PLAY MUSIC TESTER====
'
' This program was designed to work with QB64.
'
' in this program, you'll be testing strings for the PLAY command.
'
' some commands have been included in this program using the # symbol to
' make sure regular words don't confuse the program when using them as
' text to copy to the clipboard.
'
' Because this program also serves as an external text typing program
' so one can type comments fast in case other programs have a DELAYED
' text entry prompt, although this requires the extra step of typing
' #COPY# after typing in the text to prepare for clipboard copy
' as the tool is primarily for sending PLAY strings to the clipboard
' for editing in text editing programs.
'
' while some PLAY command pad programs were made for testing PLAY
' command music to post in the /r/QBmusic subreddit on Reddit,
' now here's a command line utility in case anybody prefers to
' use a command line for PLAY string testing.
'
'
_TITLE "Command line PLAY music tester for QB64"
ON ERROR GOTO errortrap:
GOSUB help
DO
    ps = 0
    INPUT a$
    SELECT CASE UCASE$(a$)
        CASE "#COPY#"
            _CLIPBOARD$ = b$
            PRINT "text copied to clipboard"
            PRINT
        CASE "#PLAY#"
            ps = 1
            PLAY b$
        CASE "#PASTE#"
            ps = 1
            IF auto = 1 THEN PLAY _CLIPBOARD$
            b$ = _CLIPBOARD$
            PRINT "clipboard text pasted"
            PRINT
        CASE "#HELP#"
            GOSUB help
        CASE "#AUTO#"
            PRINT "AUTOMATIC MODE ON"
            PRINT
            PRINT "whatever you type will PLAY when you hit ENTER."
            PRINT "and it will also be ready for clipboard copy."
            PRINT "type #MANUAL# to opt out of AUTO MODE."
            auto = 1
        CASE "#MANUAL#"
            PRINT "MANUAL MODE ON"
            PRINT
            PRINT "type your text and press ENTER when ready."
            auto = 0
        CASE ELSE
            b$ = a$
            IF auto = 1 THEN
                ps = 1
                PLAY a$
            END IF
            IF auto = 0 THEN
                PRINT "entry acknowledged, and ready for clipboard copy."
                PRINT "you can test it with the #PLAY# command."
                PRINT "or, type #COPY# to copy to clipboard."
                PRINT "type #HELP# for more command options."
                PRINT
            END IF
    END SELECT
    IF ps = 1 THEN
        IF LEN(b$) > 0 THEN PRINT "string PLAY'ed successfully"
        IF b$ = "" THEN PRINT "please enter something in the text."
        PRINT
    END IF
LOOP
help:
PRINT
PRINT " PLAY string tester tool"
PRINT
PRINT "type #COPY# to copy PLAY string to clipboard"
PRINT
PRINT "type #PLAY# to test the string with the PLAY command"
PRINT
PRINT "make sure you follow the official QB PLAY command parameters."
PRINT "you'll see an ERROR message if the string is typed wrong."
PRINT
PRINT "type #AUTO# for AUTOMATIC MODE, type #MANUAL# for MANUAL MODE"
PRINT
PRINT "AUTOMATIC MODE allows the string to PLAY right when it's typed in."
PRINT
PRINT "MANUAL MODE allows some SILENCE while entering the PLAY string."
PRINT "in MANUAL MODE, this program also serves as a tool for copying"
PRINT "regular text to the clipboard."
PRINT
PRINT "type #PASTE# to paste clipboard text for #PLAY# command."
PRINT
PRINT "press any key to continue to next page"
WHILE INKEY$ = ""
WEND
CLS
PRINT
PRINT "remember to type the special commands with a hashtag (#)"
PRINT "on each end of them for them to work.  Only one command"
PRINT "can be typed at a time, otherwise it'll just be acknowledged"
PRINT "as a text string for the clipboard or a PLAY command error."
PRINT
PRINT "again, type #HELP# if you need to see the help screen again."
PRINT
RETURN
errortrap:
ps = 0
PRINT
PRINT "SYNTAX ERROR"
PRINT
PRINT "type #HELP# for the help screen in this program."
PRINT
PRINT "look up the PLAY command online or in help screen of QB64"
PRINT "so you can understand how it works."
PRINT
RESUME NEXT

r/QBmusic • • Mar 18 '22

INTRODUCTORY POST: Tools for testing the PLAY command, and composing music to use it with, and some tips on how to edit the PLAY text string

2 Upvotes

info about the PLAY command can be found here: https://wiki.qb64.org/wiki/PLAY

Here in /r/QBmusic, one shall share some programs written in QBasic or QB64 for the intention of showcasing music compositions using the PLAY command, and we will also have some visual art to go with it, and some gadgets related to composing music with the PLAY command.

Now, let's share some programs for testing the PLAY command in for musical compositions.


Here's a couple of tools one can check out for testing the PLAY command and composition:

QB PLAY COMMAND PAD:

This program is for output of the text string for the PLAY command as you compose the music, and it has two versions to check out:

QWERTY EDITION

With this version, you can use the QWERTY portion of the keyboard to compose music similar to a piano.

NUMERIC KEYPAD EDITION

This edition is one where you can use the numeric keypad for composing music, and you can offset the range by ten units, but this one takes some getting use to.


Both of these programs will output the PLAY composition text string to the console, but one should edit it in a text editor so the timing can be right.


And if you just need a simple input entry testing program, here's one for the savvy testers:

a$ = "" ' a simple text input PLAY tester for savvy composers.
PRINT 'designed for QB64
DO 'the simplest PLAY test utility that copies and pastes to and from clipboard.
    PRINT "type 'Paste' to PLAY from the clipboard"
    PRINT
    PRINT "type 'Copy' to copy the last played string to the clipboard."
    INPUT a$
    SELECT CASE UCASE$(a$)
        CASE "PASTE"
            PRINT "PLAYing clipboard string!"
            PRINT
            a$ = _CLIPBOARD$
            PLAY a$
        CASE "COPY"
            _CLIPBOARD$ = b$
            a$ = b$
            PRINT "Copied!"
            PRINT
        CASE ELSE
            PLAY a$
    END SELECT
    b$ = a$ '
LOOP

So, enjoy composing music for GW-BASIC, QuickBasic, QBasic, QB64, etc.


SEE ALSO:

/r/QBprograms, share all sorts of QBasic and QB64 programs here!

/r/QBASIC, the subreddit about QBasic in general.

/r/QB64, a subreddit about QB64, the newer BASIC compiler which attempts to maintain QuickBasic compatibility.

/r/BASIC, a subreddit about the BASIC programming language in general

/r/Programming, a subreddit about computer programming

/r/TruckStopBathroom, everything else goes here!


r/QBmusic • • Mar 11 '22

East Carolina University Pirates sports team fight song

2 Upvotes
SCREEN 0 'this program runs good in QuickBasic, QBasic, and QB64.
WIDTH 80, 25
PALETTE 1, 63 'bright white
PALETTE 2, 33 'ECU purple
PALETTE 3, 54 'ECU gold
COLOR 3, 2 ' a yellow-over-purple background for ECU Pirates spirit!
CLS
PRINT
PRINT "     E    C    U          F    I    G    H    T          S    O    N    G"
PRINT
PRINT "                                ÜÛßÛ ÛßÛ"
PRINT "                               Ûß   ß  ßÛÜ"
PRINT "                               Û  E C U  ßÛ"
PRINT "                              Ûß          ßÛÜ"
PRINT "                             Ûß             ßÛÜ  "
PRINT "                            Ûß   WWWWWWWW     ÛÜ"
PRINT "                      WWWW  ßÛÜÜÜWBBWWWBBWÜÜÜÜÜÛ  WWW"
PRINT "                      WWWWW      WWWWWWWWW       WWWW "
PRINT "                          WWWW   WWWWWWWWW   WWWWW"
PRINT "                            WWWWWWWWWWWWWWWWWW"
PRINT "                                  WWWWWWW"
PRINT "                        WWWWWWWWWWW     WWWWWWWWWWWW"
PRINT "                        WWWW                    WWWW"
PRINT "                             "
PRINT "                           " 'ECU stands for East Carolina University.
PRINT "                           " 'ECU is home to the Pirates
FOR y = 4 TO 16 '     ECU is located in Greenville, North Carolina
    FOR x = 1 TO 53
        LOCATE y, x
        Peedee = SCREEN(y, x) 'Peedee is the name of the ECU Pirates mascot.
        SELECT CASE Peedee ' here, some printed characters get processed as colors.
            CASE ASC("B")
                COLOR 0
                PRINT "Û"
            CASE ASC("W")
                COLOR 15
                PRINT CHR$(219)
            CASE ASC("G")
                COLOR 7
                PRINT "Û"
            CASE ELSE
        END SELECT
    NEXT
NEXT
'          ECU fight song PLAYs here!
PLAY "t150 n1 n5 n4 n5 t250 n7 t80 n5 p20 t250 n5 t200 n5 t150 n5 n7 n5 t80 n4 p20"
PLAY "t150 n44 n44 t120 n44 t250 n43 n45 t80 n44 p20 t250 n44 n44 t150 n44 n43 n42 n41 p20"
PLAY "t150 n24 n28 n26 t200 n28 n29 t80 n28 p20 t250 n26 n26 t150 n26 n28 n29 t80 n30 p20"
PLAY "t250 n11 n11 t200 n11 n12 n13 n14 n14 n14 t80 n15 p20"
PLAY "t150 n19 n14 n11 n16 n19 t80 n29 p20"
COLOR 3, 2
LOCATE 18, 30
PRINT "   PRESS ANY KEY TO QUIT"
WHILE INKEY$ = ""
WEND
COLOR 7, 0
CLS
PALETTE 1, 1 'colors return back to normal for DOS users.
PALETTE 2, 2
PALETTE 3, 3

r/QBmusic • • May 28 '23

THE DIVISION BY SEVEN SONG [QB64]

1 Upvotes
' ==================================
' === THE DIVISION BY SEVEN SONG ===
' ==================================
'
' Written on QB64, made for QB64.
'
' not compatible with QB45 or QBasic 1.1
'
' unless you wanna alter the code to be compatible with other variants.
'
' a song whose melody is based on the digits of each answer
' as number 1 keeps getting divided by 7 for each round.
'
' Some notes of the song are also based on digits from previous
' part of the sequence, since we have to deal with some things
' such as the E, -, and . symbols which are different from numeric
' digits, so additional code was written to have those act as "cues"
' to recycle previously sequenced digits.
'
' This song was made as an experiement, to see if any repeated
' division would generate a good musical melody with the PLAY command.
'
CLS
a = 1
i = 2 '  having the foreground and background color be
COLOR 0 ' the same makes characters invisible.
'
PRINT "11111111111111" ' an invisible "placeholder" for the SCREEN function to acknowledge
LOCATE 1 'return to initial position
COLOR 7 'restore to default color
DO
    a$ = LTRIM$(STR$(a))
    FOR b = 1 TO LEN(a$)
        c = VAL(MID$(a$, b, 1))
        PRINT MID$(a$, b, 1);
        tt = 0
        SELECT CASE c
            CASE 1 TO 6
                PLAY CHR$(64 + c)
                d = SCREEN(i - 1, INT(b / 2) + 4)
                tt = tt + c
            CASE 6 TO 9
                PLAY CHR$(59 + c) + "-"
                '                d = SCREEN(i - 1, 3)
                d = SCREEN(i - 1, INT(b / 3) + 3)
                tt = tt + (c * 2)
            CASE ELSE
                IF SCREEN(i - 1, 3) < 65 OR SCREEN(i - 1, 5) > 90 THEN d = 1
                PLAY CHR$(64 + d) + "#"
                tt = tt + 2
        END SELECT
    NEXT
    i = i + 1
    a = a / 7 ' the number keeps getting divided by 7 each round.
    PLAY "t" + STR$((tt * 2) + 150)
    PRINT
    IF SCREEN(1, 1) <> 49 THEN EXIT DO
LOOP
PRINT
PRINT "Hope you enjoyed this presentation."

r/QBmusic • • Feb 22 '22

I'm a Scatman! QB64 program with random scat singing!

1 Upvotes
$CONSOLE
_CONSOLE ON ' an extra window for extra scat singing text!
RANDOMIZE TIMER 'radomize the scat singing!
DIM scat$(10) ' scat singing for the fans of Scatman John!
scat$(1) = "skubadoodoo"
scat$(2) = "buhbuhbuhbeebopbopbuhbuh"
scat$(3) = "bidadadbilboobuhbaba"
scat$(4) = "skubidoodoodoo"
scat$(5) = "skabuhbabaduhdubbaba"
scat$(6) = "billillilldoodobubu"
scat$(7) = "doobabadudububu"
scat$(8) = "dududoodoodoo"
scat$(9) = "I'm a Scatman!" ' Scatman John deserves his honor!
SCREEN _NEWIMAGE(100, 30, 0)
WHILE INKEY$ = "" 'press any key to stop the scatting!
    PLAY "T255 MB n16 n16 n16 n16 n16 t100 n19 t200 n18 t255 n19 n18 n16 t100 n11 t150 n18 t255 n19 n18 n16 t100 n11   t160 n19 t250 n18 n19 n18 n16 t100 n11  t200 n18 n19 t150 n18"
    scatman = INT(RND * 22) ' random scat singing all over the place!
    SELECT CASE scatman
        CASE 11
            LOCATE 30, 1
            PRINT
        CASE 12 TO 20
            _DEST _CONSOLE
            _CONSOLETITLE scat$(scatman - 11)
            PRINT scat$(scatman - 11); " ";
            _DEST 0
        CASE IS > 20
            John$ = scat$(8)
        CASE ELSE
            IF scatman > 1 THEN John$ = scat$(scatman - 1)
            IF scatman = 1 THEN John$ = scat$(1)
            tt$ = tt$ + " " + John$
            IF LEN(tt$) > 100 THEN tt$ = John$
            _TITLE tt$
    END SELECT
    y = CINT(RND * 31)
    x = CINT(RND * 100)
    IF x = 0 THEN x = 1
    IF y = 0 THEN y = 1
    IF y > 29 THEN y = 29
    IF 100 - x < LEN(John$) + 2 THEN x = 100 - LEN(John$) - 1 ' a way to snap the text to the edge of screen
    c = INT(RND * 17)
    IF c > 15 THEN c = 15
    cc = INT(RND * 15)
    IF cc = 0 THEN cc = 1
    pp = INT(RND * 64)
    PALETTE cc, pp
    LOCATE y, x
    COLOR c
    PRINT "°"; John$; "°"; 'displays scat singing on the screen!
WEND ' all the scat singing to hear!

r/QBmusic • • Feb 24 '22

Desperately Seeking QBASIC, an interesting program which PLAYs Madonna's song Into The Groove

3 Upvotes
RANDOMIZE TIMER 'A program that plays Madonna's song Into The Groove with eye candy.
PALETTE 1, 63 ' this song was featured in a famous Madonna movie.
PALETTE 2, 54 ' Some of us have seen Desperately Seeking Susan before.
PALETTE 6, 52 ' Thought we'd try something different on QBASIC.
COLOR 0, 1
CLS ' here below, you see ASCII art that's an homage to Susan's jacket.
PRINT "                 ÜÜ"
PRINT "                ÞÛÛÝ"
PRINT "                ÛêêÛ"
PRINT "               ÞÛêêÛÝ" ' those omega ASCII characters were placed there
PRINT "               ÛêêêêÛ" ' as a signal character for a different color.
PRINT "              ÞÛê()êÛÝ" ' to be used.
PRINT "              ÛêêêêêêÛ"
PRINT "             ÞÛêêêêêêÛÝ" ' This triangle sure is an iconic one.
PRINT "             ßßßßßßßßßß" ' that Madonna fans enjoy.
PRINT "             ÜÜÜÜÜÜÜÜÜÜ"
PRINT "            ÛÛþþþþþþþþÛÛ"
PRINT "           ÞÛþþþþþþþþþþÛÝ"
PRINT "           ÛÛþþþþþþþþþþÛÛ" 'MDCCLXXVI is 1776 in Roman numerals
PRINT "          ÞÛþþþþþþþþþþþþÛÝ"
PRINT "          ÛÛþþþþþþþþþþþþÛÛ"
PRINT "         ÞÛþþþþþþþþþþþþþþÛÝ"
PRINT "         ÛÛþþMDCCLXXVIþþþÛÛ"
PRINT "         ßßßßßßßßßßßßßßßßßß"
PRINT ""
FOR y = 1 TO 18
    FOR x = 1 TO 30
        LOCATE y, x
        SELECT CASE SCREEN(y, x) 'ASCII characters also signal
            CASE 40 TO 41 'a change in color paramers for this one and others.
                COLOR 0, 7
                PRINT CHR$(SCREEN(y, x))
            CASE 65 TO 91 ' alphabetical letters which are roman numerals
                COLOR 0, 2
                PRINT CHR$(SCREEN(y, x))
            CASE 219 TO 223 ' building block ASCII characters
                COLOR 6, 1 ' they form the red border of the triangle.
                PRINT CHR$(SCREEN(y, x))
            CASE 234 ' 234 is the ASCII code for the omega
                COLOR 2, 2 ' omega characters get removed
                PRINT " " 'spaces added to fill background color
            CASE 254 ' the mesh of the lower part of the triangle
                COLOR 2, 0
                PRINT CHR$(SCREEN(y, x))
        END SELECT
    NEXT
NEXT
LOCATE 20, 7
COLOR 6, 1
PRINT "²²²";
COLOR 0, 6
PRINT "NOVUS ORDO SECLORUM"; ' a phrase seen below the triangle
COLOR 6, 1
PRINT "²²²"
COLOR 0, 1
LOCATE 7, 40
PRINT "DESPERATELY"
LOCATE 9, 40
PRINT " SEEKING"
LOCATE 11, 40
PRINT " QBASIC"
LOCATE 19, 40
PRINT "press any key to continue" ' as seen on many programs in the DOS era.
WHILE INKEY$ = ""
WEND
COLOR 15, 0
CLS
PALETTE 1, 63
PALETTE 2, 54 'restoring palette
PALETTE 6, 52

Susan = 9 ' might as well name variables after movie characters.
PLAY "MB t100 n19 t200 n11 n13 n11 t90 n19 t150 n11 n11 t250 n13 n11 t90 n19 n11 n22 n19"
d$ = TIME$
DO
    Evita$ = INKEY$ ' just thought I'd also pay homage to another Madonna movie too!
    y = INT(RND * 27 - 1)
    x = INT(RND * 82 - 1)
    IF y < 1 THEN y = 1 ' random placement of ASCII characters
    IF y > 25 THEN y = 25
    IF x < 1 THEN x = 1
    IF x > 80 THEN x = 80
    Madonna = INT(RND * 150) 'M-150 is a route that goes into Rochester, Michigan
    Rosanna = INT(RND * 68) - 2
    IF Rosanna > 63 THEN Rosanna = 63 'Rosanna Arquette played another character
    IF Rosanna < 0 THEN Rosanna = 0
    Roberta = INT(RND * 20) - 1 'Roberta Glass was played by Rosanna Arquette
    IF Roberta < 1 THEN Roberta = 1
    IF Roberta > 15 THEN Roberta = 15 'Roberta was mistanken for Susan in the movie.
    Glass = INT(RND * 9) - 1
    IF Glass < 1 THEN Glass = 1 'Glass was Roberta's last name in the movie.
    IF Glass > 7 THEN Glass = 1
    LOCATE y, x
    Seidelman = TIMER
    SELECT CASE Madonna ' variable named after a celebrity
        CASE 1 TO 50
        CASE 51 TO 80
            PALETTE Roberta, Rosanna ' actress and character homage
        CASE 101 TO 105
            COLOR 15, 0
            PRINT " * ";
        CASE 74 TO 100 'the similar names Susan and Suzanne add up to numbers 74 and 100 respectively
            WHILE TIMER = Seidelman 'Seidelman was the last name of the movie's director.
                IF INKEY$ <> "" THEN END ' and her first name also happens to be Susan.
            WEND
        CASE ELSE
            COLOR Roberta, Glass ' first and last name referenced on this one!
            Suzanne = INT(RND * 200) + 32 'musician Suzanne Vega auditoned for Susan.
            LOCATE y, x 'but Madonna got the role instead.
            PRINT CHR$(Suzanne); 'on a side note, Suzanne is really just another form of Susan.
    END SELECT
    IF Susan = 0 THEN ' Madonna's Into The Groove PLAYs
        PLAY "MB t100 n19 t200 n11 n13 n11 t90 n19 t150 n11 n11 t250 n13 n11 t90 n19 n11 n22 n19"
        Susan = 9
    END IF
    IF Thomas$ <> TIME$ THEN
        Susan = Susan - 1
        Thomas$ = TIME$ ' Susan Thomas was the character Madonna played!
    END IF
LOOP UNTIL Evita$ <> "" ' enjoy this acid trip!

r/QBmusic • • Apr 14 '22

Two verses of Madonna's Lucky Star

1 Upvotes
    PLAY "MB ML T250 n36 n32 n32 n29 n32 n34 n34 p5" ' Madonna's Lucky Star PLAYs
    PLAY "MN T250 n32 n34 t200 n36 n36 n36 n34 n32 n34 n36 n34"

r/QBmusic • • Feb 09 '22

🟧🟧🟧 Classic Nickelodeon jingle 🟧🟧🟧

1 Upvotes
PALETTE 1, 52
COLOR 15, 1
CLS
PRINT
PRINT "     ÛÛÛÛ  ÛÛ ÛÛ  ÛÛÛ ÛÛ  Û ÛÛÛÛ ÛÛ    ÛÛÛ  ÛÛÛ   ÛÛÛÛ  ÛÛÛ  ÛÛÛÛ  ÛÛ  "
PRINT "     ÛÛ ÛÛ ÛÛ ÛÛ ÛÛ   ÛÛ Û  ÛÛ   ÛÛ   ÛÛ ÛÛ ÛÛ ÛÛ ÛÛ   ÛÛ ÛÛ ÛÛ ÛÛ ÛÛ "
PRINT "     ÛÛ  ÛÛÛÛ ÛÛ ÛÛ   ÛÛÛ   ÛÛÛ  ÛÛ   ÛÛ ÛÛ ÛÛ ÛÛ ÛÛÛ  ÛÛ ÛÛ ÛÛ  ÛÛÛÛ "
PRINT "     ÛÛ   ÛÛÛ ÛÛ ÛÛ   ÛÛ Û  ÛÛ   ÛÛ   ÛÛ ÛÛ ÛÛ ÛÛ ÛÛ   ÛÛ ÛÛ ÛÛ   ÛÛÛ"
PRINT "     ÛÛ    ÛÛ ÛÛ  ÛÛÛ ÛÛ  Û ÛÛÛÛ ÛÛÛÛ  ÛÛÛ  ÛÛÛ   ÛÛÛÛ  ÛÛÛ  ÛÛ    ÛÛ"
PLAY "t160 n3 t200 n3 n3 n3 t150 n1 n3 t120 n7 t80 n3"
PLAY "t160 n20 n20 t200 n22 n22 t80 n18"
PRINT
PRINT "                             NICK IS KIDS!"
PRINT
PRINT
PRINT
PRINT "press any key to quit"
WHILE INKEY$ = ""
WEND

r/QBmusic • • Feb 09 '22

MUSIC RANDOMIZER

Thumbnail self.qbasic
1 Upvotes

r/QBmusic • • Mar 17 '22

The intro theme for both GORILLA.BAS and NIBBLES.BAS in QBasic

3 Upvotes

PLAY "MBT160O1L8CDEDCDL4ECC"


r/QBmusic • • Feb 09 '22

🍺 🍺 🍺 BEER ON THE WALL 🍺 🍺 🍺

Thumbnail self.qbasic
1 Upvotes

r/QBmusic • • Feb 11 '22

🚌 The Wheels On The Bus 🚌

1 Upvotes
DIM noun$(20)
DIM action$(20)
noun$(1) = "wheels"
action$(1) = "round and round"
noun$(2) = "doors"
action$(2) = "open and shut"
noun$(3) = "wipers"
action$(3) = "swish swish swish"
noun$(4) = "babies"
action$(4) = "waah waah waah"
noun$(5) = "mommies"
action$(5) = "shh shh shh"
noun$(6) = "people"
action$(6) = "up and down"
noun$(7) = "wheels"
action$(7) = "round and round"
DIM ch(100, 100)
DIM clf(100, 100)
DIM clb(100, 100)
beginning:
CLS
PALETTE 1, 38
COLOR 15, 0
PRINT
PRINT "       THE WHEELS ON THE BUS"

COLOR 1, 0
PRINT "      "
PRINT "   ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ  "
PRINT "   ÛÄÅÄÅÄÅÄÅÄÅÄÅÄÅÄÅÄÅÄÅÄÅÄÝÞ Û"
PRINT "   ÛÛQBASICÛSCHOOLÛDISTRICTÝÞ ÛÛÛÛÛÛÛ    "
PRINT "   ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÝÞ ÛÛÛÛÛÛÛ"
PRINT "   ÛÛÛÛÛÛß ÜÜ ßÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛß ÜÜ ßÛ"
PRINT "          ÛÛÛÛ                 ÛÛÛÛ      "
PRINT "           ßß                   ßß    "
LOCATE 6
FOR d = 1 TO 28
    dd = SCREEN(6, d)
    SELECT CASE dd
        CASE 65 TO 100
            COLOR 0, 1
            PRINT CHR$(SCREEN(6, d));
        CASE ELSE
            COLOR 1, 0
            PRINT CHR$(SCREEN(6, d));
    END SELECT
NEXT
COLOR 8
LOCATE 8, 11
PRINT " ÜÜ"
LOCATE 9, 11
PRINT "ÛÛÛÛ"
LOCATE 10, 11
PRINT " ßß"
LOCATE 8, 32
PRINT " ÜÜ"
LOCATE 9, 32
PRINT "ÛÛÛÛ"
LOCATE 10, 32
PRINT " ßß"
LOCATE 11
FOR y = 1 TO 11
    FOR x = 1 TO 40
        ch(y, x) = SCREEN(y, x)
        clf(y, x) = SCREEN(y, x, 1) AND 15
        clb(y, x) = SCREEN(y, x, 1) \ 16
    NEXT
NEXT
CLS
FOR y = 1 TO 11
    FOR x = 1 TO 40
        LOCATE y, x + 20
        COLOR clf(y, x), clb(y, x)
        PRINT CHR$(ch(y, x));
    NEXT
NEXT
PRINT
COLOR 15
PRINT "--------------------------------------------------------------------------------"
COLOR 1
verse = 1
PRINT "                             press any key to begin..."
WHILE INKEY$ = ""
WEND
PRINT
DO
    PRINT "The "; noun$(verse); " on the bus go "; action$(verse)
    PRINT
    PLAY "t180 n10 n15 t250 n15 n15 n15 t170 n19 n22 n19 t80 n15"
    PRINT action$(verse); "; "; action$(verse)
    PRINT
    PLAY "t180 n17 n14 t80 n10 t180 n22 n19 n15"
    PRINT "The "; noun$(verse); " on the bus go "; action$(verse)
    PRINT
    PLAY "t180 n10 n15 t250 n15 n15 n15 t170 n19 n22 n19 t80 n15"
    PRINT "All through the town"
    PRINT
    IF verse < 7 THEN PLAY "t80 n17 t180 n10 n10 t50 n15"
    IF verse = 7 THEN PLAY "t50 n17 t100 n10 n10 t50 n15"
    IF verse = 7 THEN GOTO ending
    verse = verse + 1
LOOP

ending:
CLS
PRINT
PRINT "                        HOPE YOU ENJOYED THIS KIDS SONG!"
PRINT
PRINT "               PRESS R TO REPEAT"
PRINT
PRINT "              OTHERWISE, PRESS ANY KEY TO QUIT"
key$ = ""
WHILE key$ = ""
    key$ = INKEY$
WEND
SELECT CASE UCASE$(key$)
    CASE "R"
        GOTO beginning
    CASE ELSE
        COLOR 7
        END
END SELECT

r/QBmusic • • Mar 17 '22

QB PLAY COMMAND PAD (QWERTY EDITION), An updated version of the program used for making PLAY command music compositions on the fly, easier to use than the previous version that used the numeric keypad!

Thumbnail self.qbprograms
1 Upvotes

r/QBmusic • • Mar 29 '22

Pretty Cool MUSIC COLLECTION

2 Upvotes

PALETTE 3, 17

KEY(1) ON

ON KEY(1) GOSUB Ende

Main:

CLS

COLOR 15, 3

PRINT " PERFECT MUSIC "

COLOR 14, 0

PRINT " F1=Ende"

COLOR 15

PRINT " Hallo und willkommen zu meiner Musik-Gallerie !"

PRINT : COLOR 7

PRINT " Bitte w„hle eins von den Musikstcken aus:"

PRINT

PRINT " 1, Song 1# - 1:33 min"

PRINT " 2, Song 2# - 0:26 min"

PRINT " 3, Song 3# - 0:31 min"

PRINT " 4, Song 4# - 0:39 min"

PRINT " 5, Song 5# - 1:24 min"

PRINT " 6, Song 6# - 2:05 min"

PRINT " 7, Song 7# - 1:04 min"

PRINT " 8, Song 8# - 0:38 min"

PRINT " 9, Song 9# - 0:36 min"

PRINT " 10, Song 10# - 0:22 min"

PRINT " 11, Song 11# - 0:27 min"

PRINT " 12, Song 12# - 0:24 min"

PRINT " 13, Song 13# - 0:29 min"

PRINT : COLOR 14

PRINT " Musikstck Nr.: ";

COLOR 15

INPUT "", d

IF d <> 0 THEN

CLS

COLOR 15, 3

PRINT " PERFECT MUSIC "

COLOR 14, 0

PRINT " F1=Ende"

COLOR 15

PRINT " Die Musik spielt...."

END IF

SELECT CASE d

CASE 0

GOTO Ende

CASE 1

GOSUB 0

CASE 2

GOSUB 1

CASE 3

GOSUB 2

CASE 4

GOSUB 3

CASE 5

GOSUB 4

CASE 6

GOSUB 5

CASE 7

GOSUB 6

CASE 8

GOSUB 7

CASE 9

GOSUB 8

CASE 10

GOSUB 9

CASE 11

GOSUB 10

CASE 12

GOSUB 11

CASE 13

GOSUB 12

END SELECT

GOTO Main

END

Ende:

COLOR , 0

CLS

COLOR 7

PRINT "Alle Musikstcke sind von Storm-Master ! Falls ihr sie in eure Programme"

PRINT "verwenden wollt, dann schreibt an: [email protected] !"

SYSTEM

0 :

PLAY "O4L4E-L8FE-DCL4DL8E-DCO3B-O4L4CL8DCO3B-O4CL4O3AL8D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af#df#ao3co2babgo2abo3dcceddgf#gdo2b"

PLAY "gabo2eo3dco2bagdgf#gbo2abo3dcceddgf#gdo2bgab"

PLAY "o3cdedco2babgo2f#gadf#ao3co2babgo2abo3dcceddgf#gdo2bgabo2eo3dc"

PLAY "o2bagdgf#mng4p4p4ms"

PLAY "p12o2def#agao3co2bo3co2af#df#ao3co2babgo2abo3dcceddgf#gdo2bgab"

PLAY "o2eo3dco2bagdgf#gbo2abo3dcceddgf#gdo2bgab"

PLAY "o3cdedco2babgo2f#gadf#ao3co2babgo2abo3dcceddgf#gdo2bgabo2eo3dc"

PLAY "o2bagdgf#o2gbo3dgdo2bgbo3c#ddef#ag#g#baao4co3bo4co3aecde"

PLAY "fo4dcdo3bg#ef#g#ao4co3bo4ceddfeeag#aeco3abo4c"

PLAY "fedco3bao2eag#ao3cemla4p4ms"

PLAY "p12cdegfgb-aao4co3bo4co3afdefegfgeco2gab-ao3co2bo3co2afdef"

PLAY "ecdegf#gba"

PLAY "bgo2abo3dcceddgf#gdo2bgabo3cdedco2babgf#o2def#agao3co2bo3co2af#"

PLAY "df#ao3co2babgo2abo3dcceddgf#gdo2bgabo2eo3dco2bagdgf#o2gbo3dgdo2"

PLAY "bgbo3dfdo2bgbo3deco2af#ao3cdo2bgegbo3co2af#df#ao3co2babgo2abo3d"

PLAY "cceddgf#gdo2bgab"

PLAY "o3cdedco2babgo2f#gadf#ao3co2babgo2abo3dcceddgf#gdo2bgabo2eo3dco2"

PLAY "bagdgf#mlg2mfp1"

RETURN

6 :

PLAY "T110ML"

PLAY "O2e-16c16e-16g16O3c16e-16d16c16O2b16g16b16O3d16g16f16e-16d16"

PLAY "O3e-16c16e-16g16O4c16e-16d16c16d16c16O3b16a16g16f16e-16d16"

PLAY "O3e-16c16e-16g16O4c16e-16d16c16O3b16g16b16O4d16g16f16e-16d16"

PLAY "O4e-16c16e-16g16O5c16e-16d16c16d16c16O4b16a16g16f16e-16d16"

PLAY "O4e-16c16O3g16e-16c16O5c16O4g16e-16a-16O2f16a16O3c16f16a-16"

PLAY "O4c16e-16"

PLAY "O4d16O3b-16f16d16O2b-16O4b-16f16d16g16O2e-16g16b-16O3e-16g16b-16"

PLAY "O4d16"

PLAY "O4c16O3a16g+16a16O4c16O3a16g+16a16O4e-16c16O3g16a16O4e-16c16O3"

PLAY "g16a16"

PLAY "O4d16c16O3f+16a16O4a16c16O3f+16a16O4f+16c16O3d16a16O4c16O3a16"

PLAY "f+16d16"

PLAY "O3b-16O1g16b-16O2d16g16b-16a16g16f+16d16f+16a16O3d16c16O2b-16a16"

PLAY "O2b-16g16b-16O3d16g16b-16a16g16a16g16f+16e16d16c16O2b-16a16"

PLAY "O2b-16g16b-16O3d16g16b-16a16g16f+16d16f+16a16O4d16c16O3b-16a16"

PLAY "O3b-16g16b-16O4d16g16b-16a16g16a16g16f+16e16d16c16O3b-16a16"

PLAY "O3b-16g16b-16O4d16g16d16O3b-16g16O2f16O4g16d16O3b16g16b16O4d16g16"

PLAY "o4c16o3g16o4g16o3g16o4c16o3g16o4g16o3g16b16g16o4f16o3g16b16g16"

PLAY "o4f16o3g16"

PLAY "o4e-16c16e-16g16o5c16o4g16e-16c16o2b-16o5c16o4g16e16c16e16g16"

PLAY "o5c16"

PLAY "o4f16c16o5c16o4c16f16c16o5c16o4c16e16c16b-16c16e16c16b-16c16"

PLAY "o2a-16f16a-16o3c16f16a-16g16f16g16f16e16d16c16o2b-16a-16g16"

PLAY "o3a-16f16a-16o4c16f16a-16g16f16g16f16e16d16c16o3b-16a-16g16"

PLAY "o3a-16o4f16c16o3a-16f16o4c16o3a-16f16c16a-16f16c16o2a-16o3f16"

PLAY "c16o2a-16"

PLAY "o2d-2o4a-16f16e16f16g16f16e16f16"

PLAY "o1b2o5d16o4f16g16a-16g16f16e-16d16"

PLAY "o4e-16g16o5c16o4g16b-16a-16g16f16e-4d4"

PLAY "o4c16o3g16o4g16o3g16o4c16o3g16o4g16o3g16b16g16o4f16o3g16b16g16"

PLAY "o4g16o3g16"

PLAY "o3b-16g16o4e16o3g16b-16g16o4e16o3g16a16o4e-16o5c16o4e-16o3a16"

PLAY "o4e-16o5c16o4e-16"

PLAY "o3a-16f16o4d16o3f16a-16f16o4d16o3f16g16o4d-16b-16d-16o3g16o4d-16"

PLAY "b-16d-16"

PLAY "o3f+16e-16o4c16o3e-16f+16e-16o4c16o3e-16e-16o4c16o5c16o4c16o3e-16"

PLAY "o3e-16o4c16e-16g16o5c16g16e-16c16g16e-16c16o3g16o4f16d16o3b16f16"

PLAY "o3e-16c16e-16g16o4c16e-16d16c16d16c16o3b16a16g16f16e-16d16"

PLAY "o4e-16c16e-16g16o5c16e-16d16o4b16o5c16o4g16e-16d16c16o3g16e-16d16"

PLAY "o3c16.p4"

RETURN

7

PLAY "T200O3"

PLAY "E4D8C4C8C4D8E4E8E8D8C8D8E8D8C4O2B8O3MLC2C8MN"

PLAY "D8e4e8e4f8g4g8g4g8g4D8d4e8MLd2d8MN"

PLAY "G8A4F8A4F8A8O4MLC4C8MNO3B8A8G4E8G4E8G2"

PLAY "E4D8C4C8C4D8E4E8E8D8C8D8E8D8C4O2B8O3MLC2C8MN"

PLAY "T250O3mf"

PLAY "E4D8C4C8C4D8E4E8E8D8C8D8E8D8C4O2B8O3MLC2C8MN"

PLAY "D8E4E8E4F8G4G8G4G8G4D8D4E8MLD2D8MN"

PLAY "G8A4F8A4F8A8O4MLC4C8MNO3B8A8G4E8G4E8G2"

PLAY "E4D8C4C8C4D8E4E8E8D8C8D8E8D8C4O2B8O3MLC2C8MN"

PLAY "T255O4MF"

PLAY "E4D8C4C8C4D8E4E8E8D8C8D8E8D8C4O3B8O4MLC2C8MN"

PLAY "D8E4E8E4F8G4G8G4G8G4D8D4E8MLD2D8MN"

PLAY "G8A4F8A4F8A8O5MLC4C8MNO4B8A8G4E8G4E8G2"

PLAY "A8B8O5MLC4C8O4A4A8G4G8E4E8MNG8A8G8F4D8C"

RETURN

8

PLAY "mll8t110"

PLAY "O1b4ebo2c4o1eo2cc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GE.CO2A.O3FP4"

PLAY "CF.AF.DO2B-.O3GP4"

PLAY "FL64EFL8E.CD.EFP4"

RETURN

11 :

PLAY "L8MSO3T170"

PLAY "L8G..P64CP4>C.P32<AG..P64CP4G.P64FEEFGL4CDEP8<D.G>P32."

PLAY "L8G..P64CP4>C.P32<AG..P64CP4G.P64FEEFGL4CDC...P4"

PLAY "L4BEP8.L8>C.<BBAABA..P4L4ADP8.L8B.AAGGAGL16>G.G..G.G.<"

PLAY "L8G..P64CP4>C.P32<AG..P64CP4G.P64FEEFGL4CDP4"

PLAY "L8<EFGL4CDP4L8>EFGL4>CDC..."

RETURN

12 :

PLAY "O2T136"

PLAY "L8"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "O1"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "O2"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "O3"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "MLFCFGAAMSCC"

PLAY "O2MNT120L8"

RETURN


r/QBmusic • • Apr 15 '22

A few verses from It's In His Kiss (The Shoop Shoop Song) by Betty Everett

1 Upvotes
PLAY "MB MN t250 n20 n20 n20 n18 t120 n17 n15"
PLAY "ML t170 n30 n33 t250 MN n30 n33 n33 n33"
PLAY "MN t250 n20 n20 n20 n18 t120 n17 n15"
PLAY "ML t170 n30 n33 t250 MN n30 n33 n33 n33 p5"
PLAY "t240 n12 n10 t140 MS n32 n32 n34 n34 n30 n30 n32 n32 n25 MN p5 t250 n58 n58 n58 n62"

r/QBmusic • • Feb 21 '22

QB PLAY COMMAND PAD, this here is a program for composing PLAY command music compositions on the fly, a useful for tool for practicing composition of PLAY command music.

Thumbnail self.qbprograms
1 Upvotes

r/QBmusic • • May 11 '22

Here's a list of titles of well-known songs that do not sound like the actual song if their titles are used as the PLAY command string...

1 Upvotes

In this post, I will be explaining how the PLAY command in GW-BASIC and VBDOS, and QBasic, and QB64 is not some magical jukebox for song titles, but rather, a "player piano"-esque interpreter where the ASCII characters dictate the note letter/number.

So I thought I'd disambiguate some text strings so people don't get disappointed, but try it all you want if you think it's amusing to hear the melody that doesn't check out as the implied song title or lyrics of the song.


PLAY "ABCDEFG"

nope, it does not sound like Twinkle Twinkle Little Star (using the ABCs as it's other lyrics).

PLAY "ABACAB"

sadly, it too does not sound like the implied song title either, in case some Genesis or Phil Collins fans see this.

PLAY "FADED"

a third item that does not sound like it's implied title, it sounds nothing like that one soulDecision song from the early 2000s.

PLAY "BAD"

Sorry, doesn't even sound like any Michael Jackson song, unless somebody points out one that uses a similar riff.

PLAY "ADDAMS"

Sorry to disappoint you, but you're not gonna hear the Addams Family theme song if you attempt to use this text string in PLAY.

PLAY "ABBA"

Sorry, this note sequence doesn't sound like a riff from any song by ABBA, unless there's some obscure track of theirs that might sound like it, if I'm not mistaken.


Any text string that gives an illegal functional call error has been excluded from this list, but you'll know that illegal function call errors also confirm this claim that PLAY strings almost never reflect the melody of the implied song title.

So far I haven't found any PLAY command string that's a coincidental riff of the song whose title is the PLAY string being tested.


r/QBmusic • • Feb 09 '22

You can hear the theme song for Angry Video Game Nerd with this program that generates random AVGN quotes, QB64 is recommended for it.

Thumbnail self.avgn
2 Upvotes

r/QBmusic • • Feb 11 '22

The content this subreddit expects to see.

2 Upvotes

well, unless one is new to QBASIC or it's variants like QuickBasic, QB64 or GW-BASIC, or etc, it should be obvious as it involves the PLAY command.

For info on the PLAY command, see this article: https://qb64phoenix.com/qb64wiki/index.php/PLAY

update: changed the URL from .org to the new Phoenix Edition Wiki, since qb64.org shut down.


While this subreddit is primarily for showcasing BASIC programs that play music via the PLAY command, we can also allow QB programs that give special visual effects that go with the music, although some SCREEN MODES (especially MODE 13, 320x200 256 color mode) may not be supported in GW-BASIC, or QuickBasic versions older than 4.5.

The basic requirement for this sub, is that QB programs, whether simple or complex, should have the primary purpose of being a PC speaker musical composition using the PLAY command. It's also good to add a few easter eggs to these programs, like maybe ASCII art of objects associated with the song, or marquees for the music program to PLAY. But simply put, we want to see some songs shared here that conform to the QBASIC or QB64 syntax.


WARNING: While the PLAY command is supported on some dialects of the BASIC programming language, some other dialects of BASIC such as Apple BASIC (for Apple II) and Commodore BASIC (for Commodore 64), and some other BASIC variants don't support it. If you complain about the PLAY command not being supported or having a syntax error, then we will inform you that the BASIC dialect you are using isn't the right type for it, but in the case of illegal functional call errors, we can at least refer to the above article to understand it's syntax better.


r/QBmusic • • Apr 30 '22

Now since a new Wiki for QB64 Phoenix Edition has been made, here's another post for resources on PLAY command music creation:

1 Upvotes

Wiki article about PLAY command:

https://qb64phoenix.com/qb64wiki/index.php/PLAY

Now, here's some special programs for PLAY music creation:

QB PLAY COMMAND PAD:

This program is for output of the text string for the PLAY command as you compose the music, and it has two versions to check out:

QWERTY EDITION

With this version, you can use the QWERTY portion of the keyboard to compose music similar to a piano.

NUMERIC KEYPAD EDITION

This edition is one where you can use the numeric keypad for composing music, and you can offset the range by ten units, but this one takes some getting use to.


Both of these programs will output the PLAY composition text string to the console, but one should edit it in a text editor so the timing can be right.


other tools:

a special webpage where one can test the PLAY command in the browser:

https://firmware.ardupilot.org/Tools/ToneTester/

A special button for testing the clipboard TEXT STRING to see if it complies with the syntax for the PLAY command:

https://old.reddit.com/r/QBmusic/comments/u2iejc/a_special_button_to_click_to_test_the_play/

Just wanted to make sure we are up to date on the current state of QB64's resources while we also encourage use of the old DOS programs GW-BASIC, QuickBasic 4.5, and QBasic 1.1


r/QBmusic • • May 24 '22

HISTORY EDUCATION: a Wikipedia article about the PC speaker..... this would be the hardware speaker used for the PLAY command on GW-BASIC and QuickBasic and QBasic running on authentic old school IBM and clones running MS-DOS, while newer hardware emulates it via DOSBox and QB64.

Thumbnail
en.wikipedia.org
2 Upvotes

r/QBmusic • • Feb 28 '22

The theme song for Nickelodeon's Legends Of The Hidden Temple

2 Upvotes
SCREEN 0
WIDTH 80, 25 ' works in QuickBasic, QBASIC, and QB64.
CLS
PALETTE 2, 63
COLOR 6
PRINT "         Û  Ûß Ûßß  Ûß Û  Û ÛßÜ Ûß" 'classic Nick show of the 90s!
PRINT "         Û  Ûß Û ÜÜ Ûß ÛßÜÛ Û Û ÛÜ "
PRINT "         ÛÜ ÛÜ ÛÜÜÛ ÛÜ Û  Û ÛÜß ÜÛ "
COLOR 2
PRINT "         OF   THE   HIDDEN   TEMPLE"
PRINT
PRINT "                ÜÛÛ±ÛÛ±±Û±Û±ÛÜ"
PRINT "             ܱÛÛ±ÛÛÛÛIIÛÛÛÛÛÛ±ÛÜ"
PRINT "          ÜÛÛÛÛÛD@@UUUIIUUU@@DÛÛÛÛÛÜ"
PRINT "        ÜÛÛÛ±DD@UUÛÛÛÛIIÛÛÛÛUU@DDÛÛ±ÛÜ"
PRINT "       ÜÛÛÛD@UU@ºººººººººººººº@UU@DÛÛ±Ü"
PRINT "       ÛÛÛD@ððð@ÛÂÂÂÂÂIIÂÂÂÂÂÛ@ððð@DÛÛÛ"
PRINT "      ÛÛÛ@Uðððð@ÛÛUUUUIIUUUUÛÛ@ððððU@±ÛÛ"
PRINT "      ±ÛÛ@ððððð@ÛÛUUUUIIUUUUÛÛ@ððððð@ÛÛ±"
PRINT "      ÛÛÛ@ððððð@ÛÛÛÛÛÛIIÂÂÂÂÛÛ@ððððð@ÛÛÛ"
PRINT "      Û±Û@ððððð@ÛÂÂÂÛIIIIÛÂÂÛÛ@ððððð@ÛÛ±"
PRINT "      ±ÛÛ@Dðððð@ÛÂÂÂÛÛÛÛÛÛÛÛÛÛ@ððððD@ÛÛÛ"
PRINT "       ÛÛÛU@Û<>@ÛÛÛÛMMMMMMÛÛÛÛ@<>Û@UÛÛÛ"
PRINT "       ß±ÛÛU@DD@ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ@DD@UÛÛ±ß"
PRINT "        ßÛÛ±ÛUU@DDÛÛÛÛÛÂÂÂÛÛDD@UUÛ±ÛÛß  "
PRINT "          ßÛÛÛÛ±U@@@DDDDDD@@@UÛ±ÛÛÛß "
PRINT "             ßÛÛÛÛÛÛÛ±ÛÛ±ÛÛÛÛ±ÛÛß"
PRINT "                ßÛÛ±ÛÛ±ÛÛ±ÛÛÛß"
PRINT
FOR y = 6 TO 24
    FOR x = 1 TO 40
        LOCATE y, x
        Fogg = SCREEN(y, x) 'LOTHT host Kirk Fogg deserves honor
        SELECT CASE Fogg
            CASE ASC("")
                COLOR 6, 0
                PRINT ""
            CASE ASC("<")
                COLOR 6, 0
                PRINT "<"
            CASE ASC("Â") ' many ASCII characters are used as signal
                COLOR 3, 6 'characters for colors to be applied.
                PRINT "°"
            CASE ASC(">")
                COLOR 6, 0
                PRINT ">"
            CASE ASC("@") ' the at symbol is being used for dark lines
                COLOR 0
                PRINT "Û"
            CASE ASC("ð")
                COLOR 0, 6
                PRINT "ð"
            CASE ASC("D") ' dark lines at the bottom
                COLOR 0, 6
                PRINT "Ü"
            CASE ASC("I")
                COLOR 7
                PRINT "Û"
            CASE ASC("M")
                COLOR 0, 7
                PRINT "ß"
            CASE ASC("U") ' dark lines at the top
                COLOR 0, 6
                PRINT "ß"
            CASE ASC("Â")
                COLOR 7, 6
                COLOR 0, 6
                PRINT "ß"
            CASE 219 TO 224
                COLOR 6, 0
                PRINT CHR$(Fogg);
            CASE ASC("º")
                COLOR 0, 6
                PRINT "º"
            CASE ASC("±")
                COLOR 6, 8
                PRINT "±"
            CASE ASC("÷")
                COLOR 0, 6
                PRINT "÷"
        END SELECT
        COLOR 7, 0
    NEXT
NEXT
COLOR 2
LOCATE 10, 50
PRINT "PRESS ANY KEY TO STOP"
WHILE INKEY$ = "" 'Legends Of The Hidden Temple theme song PLAYs.
    PLAY "MB t200 n11 n11 n13 t90 n13 t200 n11 n10 t90 n11 t200 n13 n13 t180 n11 n11 n8 t90 n11 t200 n13 t80 n13 t120 n20 t200 n18 t100 n15 t150 n18 n20 n20 n18 t80 n18"
WEND
END

r/QBmusic • • Apr 24 '22

Chorus of R-E-S-P-E-C-T by Aretha Franklin

1 Upvotes
PLAY "MB t250 n20 n20 n20 n20 n23 n23 n20 p5 t250 n20 n20 n20 n20 n23 n23 n20 p5"
PLAY "t250 n10 n14 n16 n14 n26 n23 n20 p5"
PLAY "t250 n26 n23 n20 n26 n23 n20"