[comp.sys.amiga] MIDI from Amiga BASIC

janzen@ant.dec.com (Tom 296-5421 LMO2/O23) (07/21/88)

Last night I built the last adapter from MIDI socket to MIDI socket and
hooked it all up.  My oscilloscope was there to verify activity and baud rate.
Deluxe Music Construction Set does indeed play out the serial port all
by itself at what looks like the right rate (by measuring the duration of
the shortest visible mark, and taking that as a single bit).
My BASIC program, however can't do it at the right baud rate.  
I opened COM1:.  In BASIC, only baud rate <=19200 are allowed.
Omitting the baud rate only gets a syntax error (in violation of the
BASIC manual format of the com1: file name, so the manual is wrong).
Omitting everything following "COM1:" seems to default to about 300 baud.
recappng:
	1. OPEN "COM1:19200,1,N,8" AS #5 or something works but is the wrong
			buad rate
	2. OPEN "COM1:,1,N,8" AS #5 is not accepted by BASIc. If this had
		worked, then setting the baud from preferences would have
		been sufficient.
	3. OPEN "COM1:" seems to default to 300 baud.

So the upshot is that I could not send a program change to the spx90.
In addition, what worries me is that although Deluxe Music could
send data, the spx90 did not do a program change.  DMCS allows setting
a preset on a channel.  I had it omni or on channel 2 and addressed channel
2, and nothing.  The SPX also requires setting up the correspondance
between program numbers and memory places, but I left them 1 to 1, 2 to 2,
etc.  I also turned MIDI ON on the SPX90.  So that failed.  

Does anybody know a trick for getting the COM1: device to go at 31250 baud
from Amiga BASIC?
Tom Janzen Digital Equipment Corp 111 Locke Dr marlboro ma 01752