home *** CD-ROM | disk | FTP | other *** search
/ Run Magazine ReRun 1985 Winter / rerun-1985-winter.d64 / songfest (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  12KB  |  328 lines

  1. 1 rem:songfest copyright 1984 by joe kaczynski
  2. 30 clr:s=54272:forl=stos+24:pokel,0:next
  3. 31 dimh%(2,1450),l%(2,1450),c%(2,1450),d(3),r(3),v(3),fq(11):z=0
  4. 34 fora=0to11:readfq(a):next
  5. 40 poke53281,0:poke53280,2:print"[147][154]                                      [146]"
  6. 41 print"          welcome to songfest         [146]"
  7. 42 print"[154]                                      [146]"
  8. 43 print"menu[146]"
  9. 44 print"r[154]= read [150]preprogrammed song from disk"
  10. 45 print"p= play song once"
  11. 46 print"c= continuous [150]play    spacebar [150]to end[146]"
  12. 47 print"i= input notes of your own song"
  13. 48 print"a= add [150]notes to song"
  14. 49 print"m= modify [153]waveform, a/d, s/r"
  15. 50 print"s= sound [150]change during playback"
  16. 51 print"e= error correction [153]after input"
  17. 52 print"k= [153]keyboard synthesizer"
  18. 53 print"q= quit and exit program"
  19. 54 geta$:ifa$=""then54
  20. 55 gosub80
  21. 56 ifa$="r"then gosub625:ifva%=3then265:goto40
  22. 57 ifa$="p"then70
  23. 58 ifa$="c"then70
  24. 59 ifa$="i"then100
  25. 60 ifa$="a"thenz=2:i=im:d=im:goto110
  26. 61 ifa$="m"thenz=1:gosub100:goto40
  27. 62 ifa$="s"thengosub900:goto40
  28. 63 ifa$="e"thenz=3:goto750
  29. 64 ifa$=chr$(81)thenend
  30. 65 ifa$="k"thenprint"[147]":goto1065
  31. 66 goto40
  32. 70 ifim<>0then265
  33. 71 goto40
  34. 80 ifa$<>"r"anda$<>"i"anda$<>"p"thenreturn
  35. 81 ifa$="p"andim=0thenreturn
  36. 82 print"[147]":print"[153]note[146]":print"all the christmas carols use 3 voices."
  37. 83 print"i suggest using the 3 voice option when"
  38. 84 print"loading these songs from disk."
  39. 85 print"you have the option of using any number"
  40. 86 print"of voices that you desire for your own"
  41. 87 print"creations."
  42. 88 print"these options are valid for inputting "
  43. 89 print"notes, loading from or writing to disk,"
  44. 90 print"when adding notes to your song creation"
  45. 91 print", and playback of any songs including"
  46. 92 print"the ones in the program listing."
  47. 93 print"[153]how many voices would you like?[146]"
  48. 94 input"                        (1,2,or 3)";va%
  49. 95 ifva%>3orva%<1thenprint"please reenter (1 2 or 3)[146]":goto93
  50. 96 vb%=va%-1:return
  51. 100 fork=0tovb%
  52. 101 print"[147]parameters for voice"k"are now:w/f-"v(k)",   a/d-"d(k)",s/r-"r(k)
  53. 102 print"[153]enter new parameters for voice #"k":"
  54. 103 input"[153]w/f(17,33,65)";v(k)
  55. 104 ifv(k)=65theninput"hi pulse(0-15)";hp(k):input"lo pulse(0-255)";lp(k)
  56. 105 input"[150]a/d(0to255)";d(k)
  57. 106 input"s/r(0to255)";r(k)
  58. 108 ifz=1thennext:z=0:return
  59. 109 next
  60. 110 fork=0tovb%:ifz=2theni=d:goto112
  61. 111 i=0:d=0
  62. 112 print"[147]record measure #[160](closest to note,only)"
  63. 113 print"before going to next voice or for note  error correction[146]"
  64. 114 print"[153]voice #"k"    [150]enter notes"
  65. 115 print"[153]enter 0,0,0 to go to next voice"
  66. 119 ifz=3thenz=0:goto40
  67. 120 gosub800
  68. 121 ifk=2andi=imthend=im
  69. 122 ifnm=0andk<>0andi<>imthenprint"[147][150]error in entry.  redo last series"
  70. 123 ifnm=0andk<>0andi<>imtheni=d:im=d:fort=1to2000:next:goto110
  71. 124 ifnm=0then250
  72. 135 b=i/16
  73. 140 wa=v(k):ifnm<0thennm=-nm:wa=1
  74. 150 dr%=nm/128:oc%=(nm-128*dr%)/16
  75. 160 nt=nm-128*dr%-16*oc%
  76. 170 fr=fq(nt)
  77. 180 if oc%=7then200
  78. 190 forj=6tooc%step-1:fr=fr/2:next
  79. 200 hf%=fr/256:lf%=fr-hf%*256
  80. 210 ifdr%=1thenh%(k,i)=hf%:l%(k,i)=lf%:c%(k,i)=wa:i=i+1:c=i/16
  81. 211 ifdr%=1thenprint"[145][153]meas."b"[153]to"c:goto119
  82. 220 forj=1todr%-1:h%(k,i)=hf%:l%(k,i)=lf%:c%(k,i)=wa:i=i+1:next
  83. 230 h%(k,i)=hf%:l%(k,i)=lf%:c%(k,i)=wa-1
  84. 240 i=i+1:c=i/16:print"[145][153]meas."b"[153]to"c:goto119
  85. 250 ifk=0thenim=i
  86. 260 next:z=0:goto40
  87. 265 rem song words
  88. 270 ifns$="silent night"then299
  89. 271 rem ifns$="noel"thengosub350:return
  90. 272 rem ifns$="bethlehem"then375
  91. 273 ifns$="housetop"then400
  92. 274 ifns$="adeste fideles"then425
  93. 275 ifns$="joy to the world"then450
  94. 276 rem ifns$="manger"then475
  95. 277 rem ifns$="herald angels"then310
  96. 278 ifns$="midnight clear"then325
  97. 280 ifim<>0then495
  98. 299 print"[147][150]s[151]i[152]l[153]e[154]n[155]t [155]n[154]i[153]g[152]h[150]t"
  99. 300 print"silent night, holy night":print"all is calm, all is bright"
  100. 302 print"round yon virgin, mother and child"
  101. 303 print"holy infant so tender and mild"
  102. 304 print"sleep in heavenly peace":print"sleep in heavenly peace"
  103. 306 goto500
  104. 310 print"[147][150]ha[153]r[154]k [155]th[156]e [158]her[159]al[155]d [154]a[153]n[152]g[151]e[150]l[153]s [151]s[153]i[150]n[153]g"
  105. 311 print"hark the herald angels sing":print"glory to the new born king"
  106. 312 print"peace on earth and mercy mild":print"god and sinner reconciled"
  107. 313 print"joyful all ye nations rise":print"join the triumph of the skies"
  108. 314 print"with angelic hosts proclaim":print"christ is born in bethlehem"
  109. 315 print"hark the herald angels sing":print"glory to the new born king"
  110. 316 goto500
  111. 325 print"[147][150]i[151]t [152]c[153]a[154]m[155]e u[159]p[156]on t[158]h[155]e [153]m[152]i[151]d[150]n[158]igh[156]t c[159]l[156]ear"
  112. 326 print"it came upon a midnight clear":print"that glorious song of old"
  113. 327 print"from angels bending near the earth"
  114. 328 print"to touch their harps of gold"
  115. 329 print"peace on the earth, good will to men"
  116. 330 print"from heaven's all gracious king"
  117. 331 print"the world in solemn stillness lays"
  118. 332 print"to hear the angels sing"
  119. 335 goto500
  120. 350 print"[147][150]n[153]o[150]e[153]l"
  121. 351 print"the first noel,the angels did say"
  122. 352 print"was to certain poor shepherds in        fields where they lay"
  123. 354 print"in fields where they":print"lay keeping their sheep"
  124. 356 print"on a cold winters night":print"that was so deep"
  125. 358 print"[153]chorus"
  126. 359 print"noel, noel, noel, noel":print"born is the king of israel"
  127. 361 print"[150]repeat chorus"
  128. 362 goto500
  129. 375 print"[147][150]o[151] [152]l[153]i[154]t[155]t[149]l[129]e [150]t[151]o[152]w[153]n[154] o[154]f [153]b[152]e[151]t[150]h[149]l[129]e[153]h[150]e[151]m"
  130. 376 print"o little town of bethlehem how still    we see thee lie"
  131. 377 print"above thy deep and dreamless sleep      the silent stars go by"
  132. 378 print"yet in thy dark streets shineth         the everlasting light"
  133. 379 print"the hopes and fears of all the years    are met in thee tonight"
  134. 380 goto500
  135. 400 print"[147][155]u[154]p [153]o[152]n [151]t[150]h[149]e [150]h[153]o[129]u[149]s[155]e[154]t[150]o[153]p"
  136. 401 print"up on the housetop the reindeer pause"
  137. 402 print"out jumps good old santa claus"
  138. 403 print"down through the chimney with lots of   toys"
  139. 404 print"all for the little ones christmas       joys"
  140. 405 print"[153]chorus"
  141. 406 print"ho,ho,ho, who wouldn't go":print"ho,ho,ho, who wouldn't go"
  142. 407 print"up on the housetop, click,click,click"
  143. 409 print"down through the chimney with           the good saint nick"
  144. 410 goto500
  145. 425 print"[147][129]a[153]d[150]e[151]s[152]t[153]e [154]f[155]i[154]d[153]e[152]l[151]e[150]s"
  146. 426 print"o come all ye faithful":print"joyful and triumphant"
  147. 428 print"o come ye, o come ye to bethlehem"
  148. 429 print"come and behold him":print"born the king of angels"
  149. 431 print"[153]chorus"
  150. 432 print"o come let us adore him":print"o come let us adore him"
  151. 434 print"o come let us adore him":print"christ the lord"
  152. 436 goto500
  153. 450 print"[147][129]j[150]o[151]y [152]t[153]o [154]t[155]h[153]e [150]w[151]o[152]r[153]l[150]d"
  154. 451 print"joy to the world,the lord has come"
  155. 452 print"let earth receive her king"
  156. 453 print"let every heart,prepare him room"
  157. 454 print"and heaven and nature sing":print"and heaven and nature sing"
  158. 456 print"and heaven,and heaven,and nature sing"
  159. 457 goto500
  160. 475 print"[147][129]a[150]w[151]a[152]y [153]i[154]n [155]a [154]m[153]a[152]n[151]g[150]e[153]r"
  161. 476 print"away in a manger,no crib for a bed"
  162. 477 print"the little lord jesus":print"laid down his sweet head"
  163. 479 print"the stars in the sky":print"looked down where he lay"
  164. 481 print"the little lord jesus":print"asleep on the hay"
  165. 483 print"the cattle are lowing":print"the poor baby wakes