#############
# The following is 'cz101.sysex' from the midi-archive.
#############

To get all the gory MIDI details about the Casio CZ series, call or
write Casio and ask for the "Guidebook for MIDI".  The address is:

	Casio, Inc.
	15 Gardner Road
	P.O. Box 1386
	Fairfield, NJ 07007
	(201) 575-7400

While you're waiting for it to arrive, here's enough information to
write a simple patch librarian.  The CZ and the computer have to carry
on a silly dialog before the actual patch data can be exchanged.  To
tell the CZ to transmit a patch, here's how it goes:

	Computer:	f0 44 00 00 7n 10 zz
	CZ:		f0 44 00 00 7n 30
	Computer:	7n 31
	CZ:		256 bytes of patch data followed by f7
	Computer:	f7

To send a patch to the CZ, the dialog goes as follows:

	Computer:	f0 44 00 00 7n 20 zz
	CZ:		f0 44 00 00 7n 30
	Computer:	256 bytes of patch data followed by f7
	CZ:		f7

Key:
	n = CZ's basic MIDI channel (0-f)
	zz = which patch to transmit or receive:

		presets 1-16 = 00-0f or 10-1f
		internal 1-16 = 20-2f or 30-3f
		cartridge 1-16 = 40-4f or 50-5f
		current sound area = 60

There are no checksums, and no negative acknowledgements of any kind, so
if there's a transmission error or a programming error, your program
won't find out about it.

---
Alan Bland
DR 30G108
drume!mab
