User Tools

Site Tools


qbasic-compatible_20music

Differences

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

Link to this comparison view

qbasic-compatible_20music [2018/03/31 13:19]
127.0.0.1 external edit
qbasic-compatible_20music [2018/04/17 18:20] (current)
tbest3112 Added syntax highlighting
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.txt ยท Last modified: 2018/04/17 18:20 by tbest3112