Algorithmic Composition: A Gentle Introduction to Music Composition Using Common LISP and Common Music
Skip other details (including permanent urls, DOI, citation information) :This work is protected by copyright and may be linked to without seeking permission. Permission must be received for subsequent distribution in print or electronically. Please contact : [email protected] for more information.
For more information, read Michigan Publishing's access and usage policy.
Appendix A: Using Common Music with MIDI and the Open Music System
Common Music references a file named cminit.lisp when it is launched. The purpose of cminit.lisp is to initialize Common Music so that it works with your hardware and software. The file cminit.lisp should reside in the root level of the Common Music application directory.
To configure Common Music so that it works with the OMS MIDI Driver, include a line of code in the cminit.lisp file that establishes the MIDI connection. The code takes the general form:
(setf *midi-default-connections* '(("input-device" "output-device")))
where input-device and output-device are the MIDI device names in your OMS Setup.
Example A.1 is a sample line of code included in cminit.lisp that establishes MIDI communication with aRoland JV-80, Roland Sound Canvas, Akai S2000, and a Zeta VC-225. The MIDI input and output device names are consistent with the device names in the OMS Setup as seen in Figure A.1.
Example A.1
After launching Common Music, use the Common Music command open midi to open a MIDI connection. Common Music responds with the following message: