Hi Friends and customers,
I would like to explain how to use SD MIDI ][+ on BASIC.
SD MIDI ][+ card with a sound module, it would make a MIDI sound card for APPLE II.
But, unfortunately, APPLE II has limited Software to play MIDI sound.
SD MIDI ][+ users could play *.MID songs with MIDI Player.
And I believe that someday people would like to play MIDI card for better sound on APPLE II.
I will explain how to use SD MIDI ][+ card on BASIC in this column.
Users can use it in a straightforward way on BASIC.
Play Note and Stop the Note and with proper delay, It could be a MIDI song player.
Let's start to play BASIC for MIDI sound.
Try this code to make Sound.
*You need to key in all BASIC code, it would make you understand it.
** SD MIDI ][+ need to SLOT#2.
10 AC = 49320 ;Slot #2. MIDI control port
20 AD = 49321 ;Slot #2, MIDI Data port
100 POKE AC,19: POKE AC,17 ;MC 6850 init
200 POKE AD,144: POKE AD,50: POKE AD,127 ; Send data
]RUN
Can you hear any sound?
If there is no sound, try to check if card SLOT #2 and Speaker are ON.
If you could hear sound.. it is the easiest way to use MIDI card on your APPLE II.
And Now, let's change the musical instrument to another.
Add this code.
110 POKE AD,192: POKE AD,127
And RUN it
]RUN
And now,
What do you hear?
Did you still think making MIDI sound is hard on APPLE II?
Now, you need to learn the Data that it sent..
The code of POKE AD,( )
You may need to find the MIDI specification.
And What I tested in the code..
NOTE ON
and
Program Change
Thanks