CMF2MID Version 1.0 July 5, 1991 (C) 1991 Adam Mirowski Portions (C) 1991 Tim Thompson Purpose ------- CMF2MID converts Sound Blaster CMF files into format 0 standard MIDI files. Features -------- CMF2MID supports CMF format versions 1.0 and 1.1. In the process of conversion, note durations aren't touched, to avoid all aliasing. Required tempo is obtained by adjusting the midifile quarter note division. If the CMF file doesn't contain explicit tempo indication, a division of 96 is taken, and the midifile tempo set accordingly. The tempo can also be externally imposed. Instruments are recognized accordingly to an internal database of about 1000 sounds. Their names aren't explicited in CMF files. Instrument information can be converted into appropriate program/note/channel and volume changes if you provide directives in an external .CMM file, named after the CMF file. This file is automatically used when present. Its contents depends on the synthesizer you want to play the midifile on, so you must do it yourself. You won't get interesting output unless you use it. CMF header information can be displayed. Various checks and optimizations of the MIDI file output are performed. Usage details ------------- Entering CMF2MID at DOS prompt displays usage instructions. A .CMM file is a text file composed of lines of the following form: instr-# midi-channel midi-note midi-prog-change volume-adjustment remarks 0->... -1->15 -1->127 -1->127 0->100->... -1 values mean "don't change". Volume adjustments are percentages. They are not mandatory. Use 0 to shut off an instrument. Lines starting with ";"s are not interpreted. Currently, only 2 variants are allowed for the lines: ins-number -1 -1 program<>-1 ... ins-number chan<>-1 note<>-1 -1 ... The second type is for drums, which at least on my (extremely modest) equipment, must go to a predefined channel. If you see a need for another formats, let me know. Remarks ------- If you want to convert ROL files into MIDI files, use rol2cmf first. Must CMF files are converted ROLs. There will soon be new versions of the CMF file format, I think, because new hardware is to be released in August, so if you want CMF2MID process them, send me the specs or some new files (and preferably a program to play them...). CMF2MID contains code from Tim Thompson's Midifile decoder. CMF2MID version 1.0 is free for any usage. Author ------ I can be reached by e-mail as mir@chorus.fr by phone at: +33 (1) 30-64-82-00 or at: M. Adam Mirowski c/o Chorus systŠmes 6, av. Gustave Eiffel F-78182 Saint-Quentin-en-Yvelines CEDEX FRANCE or leave me a message in the 'PCM' (5) conference at the "SOS Micro" BBS phone: +33 (1) 46-21-32-70 (France!)