User Tools

Site Tools


qbasic-compatible_20music

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qbasic-compatible_20music [2018/03/31 13:19] – external edit 127.0.0.1qbasic-compatible_20music [2024/01/05 00:21] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, March 2014//\\ \\  The code below implements a QBASIC-compatible **PLAY** command, which allows you to play simple tunes; it makes use of the //BBC BASIC// **SOUND** and **ENVELOPE** statements available in LBB. The example tune is from Beethoven's //Ode to Joy//:\\ \\  //by Richard Russell, March 2014//\\ \\  The code below implements a QBASIC-compatible **PLAY** command, which allows you to play simple tunes; it makes use of the //BBC BASIC// **SOUND** and **ENVELOPE** statements available in LBB. The example tune is from Beethoven's //Ode to Joy//:\\ \\ 
 +<code lb>
       CALL QBplay "L8eefggfedccdeL6eL16dL4d"       CALL QBplay "L8eefggfedccdeL6eL16dL4d"
       CALL QBplay "L8eefggfedccdeL6dL16cL4c"       CALL QBplay "L8eefggfedccdeL6dL16cL4c"
Line 61: Line 62:
       LOOP UNTIL play$ = ""       LOOP UNTIL play$ = ""
   END SUB   END SUB
 +</code>
qbasic-compatible_20music.1522502375.txt.gz · Last modified: 2024/01/05 00:16 (external edit)