home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
convrtrs
/
mf2rol
/
mf2rol.doc
< prev
next >
Wrap
Text File
|
1991-04-08
|
6KB
|
136 lines
MF2ROL - A MIDI file to .ROL file converter.
Beta V1.1 04/08/91 (See revision history below for new features & bug fixes)
Uploaded originally to the National PC & MIDI Data Bank BBS (708) 593-8703
This package should include the following files:
MF2ROL.DOC This file.
MF2ROL.EXE MIDI File to AdLib .ROL file converter.
LISTBNK.EXE AdLib instrument bank (.BNK) listing program.
BNK835.BNK Instrument bank file referenced by all the .CFG files below
PANAMA.MID Sample MIDI file from BENOIT.ZIP on this BBS.
PANAMA.CFG Config file suitable for PANAMA.MID
FANTASIA.MID Another sample MIDI file from LUTE.ZIP on this BBS
ROOTBEER.MID Another sample MIDI file from PIANSOLO.ZIP on this BBS
STYX-32.MID Another sample MIDI file from STYX-32.ZIP on this BBS
DEFAULT.CFG A simple config file.
MT32.CFG A very incomplete config file to emulate an MT32
MT32INS.CFG Same as above but with no percussion
The author wrote MF2ROL and LISTBNK at home, for his own personal use. Since
many AdLib and SoundBlaster owners may find these programs useful, they are
being released to the user community. However, the author retains ownership
of the programs, and they may not be sold for profit. The package may be
distributed freely, but the contents should not be altered in any way
including this document. The user is responsible for determining that these
programs are suitable and safe for use on his/her system.
MF2ROL -
This program converts MIDI files to .ROL files. This beta version processes
note, program (patch/timbre) and tempo information and ignores pitch-bend and
volume (pressure). The MIDI file parser is based on Tim Thompson's C
Language MIDI routines found in MIDIFILE.ZIP on this BBS. To convert a MIDI
file, simply specify it on the command line. For example to convert a file
MUSIC.MID to a ROL:
mf2rol music.mid
This will create the file called music.rol in the current directory. The
conversion will assume all notes should be played with the instrument
"PIANO1". To control what timbres (instruments) are used, you may specify a
configuration file as a second argument to the program, for example:
mf2rol music.mid mt32.cfg
In this case, the converter will use the information in the config file
MT32.CFG to assign instruments to patch numbers, tracks or channels. The
config file specifies an instrument bank file to use, percussion mode, and a
set of timbre assignment rules. Examine the sample config files for
documentation. You will certainly want to develop your own config files to
emulate the more popular synths. Some knowledge of MIDI would be handy.
During the conversion, the program prints some important information on the
screen about the MIDI file being converted, like the MIDI channels used,
patches (i.e. programs or instruments) used, and comments (if any) about each
track. Sometimes, the creator of a MIDI sequence adds comments about what
instrument is on each track, or at least tells you what synth(s) are used.
You can use this information to create a custom config file for that
particular MIDI file.
To convert the sample MIDI files in this package to ROLs, use the following
commands:
mf2rol panama.mid panama.cfg
mf2rol fantasia.mid default.cfg
mf2rol rootbeer.mid
mf2rol styx-32.mid mt32ins.cfg
When you play the ROLs, remember to tell your player to use BNK835.BNK,
especially for MT32INS.CFG since that file uses unusual instruments not
normally found in the default instrument bank file. The converter uses a
dynamic allocation method to assign sound-card voices to individual notes.
If there are more simultaneous notes in a MIDI file than there are voices,
the program cuts off the oldest notes currently playing. Thus, if you
convert MIDI files that have very many simultaneous notes playing, the
resulting ROL may sound choppy. Take note that many professionally sequenced
files DO use a LOT of notes. The styx-32 sample is included to illustrate
this effect.
LISTBNK -
This program lists the contents of an instrument bank file. For example, to
list the contents of BNK835.BNK use the command:
listbnk bnk835.bnk
This will list the instruments to the screen. To save into a file or to
print, use:
listbnk bnk835.bnk > bnk835.lst
listbnk bnk835.bnk > prn:
A listing of the contents of your favorite instrument bank file is handy when
creating your own config file.
---
I hope you find these programs useful as I have. Since they are basically
free, please do not expect support. I am willing to take bug reports
however. If you do develop a complete config file for the MT32, I'd
appreciate a copy.
-Alejandro Kapauan (on the PC & MIDI Data Bank)
aak@iexist.att.com (internet)
hdtx51a (Prodigy)
MF2ROL - MIDI File to AdLib ROL Converter Revision History
----------------------------------------------------------
Version 1.0 Beta 04/06/91
-------------------------
First Release. Limited to 6400 MIDI events.
Version 1.1 Beta 04/08/91
-------------------------
1) Revised the memory allocation method used when reading a MIDI file into
memory. Will now process files as large as free memory will allow. Huge
MIDI files can be converted as long as you don't have too many TSRs and
drivers loaded.
2) Instead of giving up when garbage bytes are found after a track (normally
the bytes should contain "MTrk") the program now assumes that the file has
ended. I have run into a few MIDI files that have extra bytes at the end
that are otherwise okay.
3) When reading a config file, the program now allocates just enough memory
to contain the assignment rules.
4) Added the special instrument called "mute" for use in config files that
tells the program to skip those notes. This is handy if you want to silence
certain tracks or instruments.
-Alejandro Kapauan (on the PC & MIDI Data Bank)
aak@iexist.att.com (internet)
hdtx51a (Prodigy)