home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / commodore-users-of-norman / CUON_07_(08-1984).d64 / organ (.txt) < prev    next >
Commodore BASIC  |  2019-04-13  |  2KB  |  79 lines

  1. 10 POKE 53281,0:PRINT""CHR$(14)
  2. 20 PRINT "[147]     [195][207][205][205][207][196][207][210][197] 64 MUSIC SYNTHESIZER"
  3. 100 PRINT"          [221]    [221]   [221]   "
  4. 110 PRINT"          [221]    [221]   [221]   "
  5. 120 PRINT"        [146]2 [146]3 [221] [146]5 [146]6 [146]7 [221] [146]9 [146]0 [221] [146]- [146]\ "
  6. 130 PRINT"        [221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221] [221] "
  7. 140 PRINT"       [209][221][215][221][197][221][210][221][212][221][217][221][213][221][201][221][207][221][208][221]@[221]*[221]^"
  8. 150 PRINT"[211][208][193][195][197]        SELECT SOLO OR POLYPHONIC"
  9. 160 PRINT"[198]1,[198]3,[198]5,[198]7  SELECT OCTAVE"
  10. 170 PRINT"[198]2,[198]4,[198]6,[198]8  SELECT WAVEFORM"
  11. 175 PRINT"[216]            PLAY SONG"
  12. 180 PRINT"HANG ON, SETTING UP FREQUENCY TABLE..."
  13. 190 S=13*4096+1024:DIMF(26):DIMK(255)
  14. 200 FORI=0TO28:POKES+I,0:NEXT
  15. 210 F1=7040:FORI=1TO26:F(27-I)=F1*5.8+30:F1=F1/2^(1/12):NEXT
  16. 220 K$="Q2W3ER5T6Y7UI9O0P@-*\^"
  17. 230 FORI=1TOLEN(K$):K(ASC(MID$(K$,I)))=I:NEXT
  18. 240 PRINT"[145]                                      "
  19. 250 AT=0:DE=0:SU=15:RE=10:SR=SU*16+RE:AD=AT*16+DE:WV=16:W=0:M=1:OC=4:HB=256:Z=0
  20. 260 FORI=0TO2:T=I*7:POKES+5+T,AD:POKES+6+T,SR
  21. 270 POKES+2+T,4000AND255:POKES+3+T,4000/256:NEXT
  22. 280 POKES+24,15
  23. 300 GETA$:IFA$=""THEN300
  24. 310 FR=K(ASC(A$)):IFFR=ZTHEN500
  25. 315 FR=F(FR)/M:T=V*7:CR=S+T+4
  26. 320 POKES+5+T,Z:POKES+6+T,Z
  27. 330 POKECR,8:POKECR,Z
  28. 340 POKES+T,FR-HB*INT(FR/HB)
  29. 350 POKES+1+T,FR/HB
  30. 360 POKES+5+T,AD:POKES+6+T,SR
  31. 370 POKECR,WV+1:FORI=1TO50*AT:NEXT
  32. 375 POKECR,WV
  33. 380 IFP=1THENV=V+1:IFV=3THENV=0
  34. 400 GOTO300
  35. 500 IFA$="[133]"THENM=1:OC=4:GOTO300
  36. 510 IFA$="[134]"THENM=2:OC=3:GOTO300
  37. 520 IFA$="[135]"THENM=4:OC=2:GOTO300
  38. 530 IFA$="[136]"THENM=8:OC=1:GOTO300
  39. 540 IFA$="[137]"THENW=0:WV=16:GOTO300
  40. 550 IFA$="[138]"THENW=1:WV=32:GOTO300
  41. 560 IFA$="[139]"THENW=2:WV=64:GOTO300
  42. 570 IFA$="[140]"THENW=3:WV=128:GOTO300
  43. 580 IFA$=" "THENP=1-P:GOTO300
  44. 585 IFA$="X"THEN10000
  45. 590 IFA$="[147]"THEN200
  46. 600 GOTO300
  47. 800 PRINT"HIT A KEY"
  48. 810 GETA$:IFA$=""THEN810:WAIT FOR A KEY
  49. 820 PRINTA$:RETURN
  50. 9000 DATA40,17,15,17,13,17,12,17,10,17,8,17,6,17,15,13,15,15,13,15,12
  51. 9005 DATA15,10,15,8,15,6,15,5,15,13,12,13,13,12,13,10,13,8,13,6,13,5,13,4,13
  52. 9006 DATA12,10,12,12
  53. 9010 DATA10,12,9,12,7,12,5,12,3,12,1,12
  54. 9020 DATA10,8,10,0
  55. 9600 DATA40,12,8,10,12,15,13,13,17,15,15,20
  56. 9610 DATA19,20,15,12,8,10,12,13,15,17,15,13,12,10,12,8,7,8,10,3
  57. 9620 DATA7,10,13,12,10
  58. 9630 DATA12,8,10,12,15,13,13,17,15,15,20
  59. 9640 DATA19,20,15,12,8,10,12
  60. 9650 DATA5,15,13,12,10,8,3,8,7,8,12,15,20,15,12,8
  61. 9660 DATA12,15,18,15,12,8,12,15,17,13,10
  62. 9670 DATA7,10,13,15,12,8,5,8,12,13,10,7,3,7,10,13,12,10
  63. 9680 DATA8,12,15,20,0
  64. 9999 DATA -1,-1
  65. 10000 READTE
  66. 10005 READA:IFA=ZTHEN300
  67. 10010 IFA=-1THENRESTORE:GOTO10000
  68. 10015 FR=F(A)/M:T=V*7:CR=S+T+4
  69. 10020 POKES+5+T,Z:POKES+6+T,Z
  70. 10030 POKECR,8:POKECR,Z
  71. 10040 POKES+T,FR-HB*INT(FR/HB)
  72. 10050 POKES+1+T,FR/HB
  73. 10060 POKES+5+T,AD:POKES+6+T,SR
  74. 10070 POKECR,WV+1:FORI=1TO50*AT:NEXT
  75. 10075 POKECR,WV
  76. 10080 IFP=1THENV=V+1:IFV=3THENV=0
  77. 10090 FORI=1TOTE:NEXT
  78. 10100 GOTO10005
  79.