
Simple BASIC source code for
Simple BASIC source code for
Instruments assign
Instruments assign
You can use this source code for your SD Music+.
You need to insert SD music+ slot in # 4
Simple put channel number then Music instruments number.
If channel number is ‘0’ then will end of program.
Channel number is valid 1 to 8 and Music instruments number is valid 0~ 15
Please refer music instruments table.
10 HOME
10 HOME10 HOME
10 HOME
20 INPUT
20 INPUT20 INPUT
20 INPUT “
““
“CHANNEL?
CHANNEL?CHANNEL?
CHANNEL?“
““
“;C
;C;C
;C
30 IF C=0 THEN END
30 IF C=0 THEN END30 IF C=0 THEN END
30 IF C=0 THEN END
40 INPUT
40 INPUT40 INPUT
40 INPUT “
““
“MUSIC INSTRUMENT?
MUSIC INSTRUMENT?MUSIC INSTRUMENT?
MUSIC INSTRUMENT?“
““
“;M
;M;M
;M
50 S=C*16+M
50 S=C*16+M50 S=C*16+M
50 S=C*16+M
60 POKE 50306,255:POKE 50307,255
60 POKE 50306,255:POKE 50307,25560 POKE 50306,255:POKE 50307,255
60 POKE 50306,255:POKE 50307,255
70 POKE 50304,129: POKE 50305,S
70 POKE 50304,129: POKE 50305,S70 POKE 50304,129: POKE 50305,S
70 POKE 50304,129: POKE 50305,S
80 POKE 50304,255
80 POKE 50304,25580 POKE 50304,255
80 POKE 50304,255
90 GOTO 20
90 GOTO 2090 GOTO 20
90 GOTO 20
Reference code on Monitor
Reference code on MonitorReference code on Monitor
Reference code on Monitor
(n: is slot number)
(n: is slot number)(n: is slot number)
(n: is slot number)
Cn82:FF
Cn82:FFCn82:FF
Cn82:FF ‘
‘‘
‘Set PortB
Set PortBSet PortB
Set PortB’
’’
’
Cn83:FF
Cn83:FFCn83:FF
Cn83:FF ‘
‘‘
‘Set PortA
Set PortASet PortA
Set PortA’
’’
’
Cn80:81
Cn80:81Cn80:81
Cn80:81 ‘
‘‘
‘Mode for change of instrument
Mode for change of instrumentMode for change of instrument
Mode for change of instrument’
’’
’
Cn81: # #
Cn81: # #Cn81: # #
Cn81: # # ‘
‘‘
‘Channel/ Instrument number
Channel/ Instrument numberChannel/ Instrument number
Channel/ Instrument number’
’’
’
Cn80:FF
Cn80:FFCn80:FF
Cn80:FF ‘
‘‘
‘End of configuration
End of configurationEnd of configuration
End of configuration