Manual
Synopsis
gamemus [options...] song [actions...]
Description
Perform the specified actions on the given
song file. The actions are performed in order
(i.e. the first action specified on the command line is performed first.)
Actions
--convert=format:file,-cformat:fileconvert the input song into another
format, saving it asfile. Use--list-formatsto see the available output formats.--list,-llist all the events in the song, in text form
--list-instruments,-ilist all the instruments used in the song, in text form
--newinst=format:file,-nformat:fileuse a different instrument bank for subsequent conversions with
--convert.--repeat-instruments=count,-rcountrepeat the instrument bank until there are
countinstruments available. This is useful when replacing instruments, but there are not enough of them in the newly loaded bank.
Options
--list-typesshow a list of supported file formats, along with the value to pass to
--type,--convertand--newinst.--force,-fopen the file as the given
--type, even if it doesn't look like it's in that format.--force-opl2,-2force OPL2 mode (11 channels) when writing FM songs with
--convert. This drops events that enable OPL3 mode.--force-opl3,-3force OPL3 mode (18 channels) when writing FM songs with
--convert. This duplicates certain events so they apply to both register sets, and drops events that disable OPL3 mode. This may fail if the file format does not support OPL3 chips.--no-pitchbends,-ndon't use pitchbends with
--convert. This can make the output notes a bit cleaner if the song doesn't use any pitchbends.--script,-sprint output suitable for parsing by a script.
--type=format,-tformatmanually specify the file type. The type is normally autodetected, but it needs to be specified for a few formats which lack signatures to identify them by. See
--list-types.
Examples
- gamemus song_5.kb1 --list
list all the note on/off and other events in the Kiloblaster theme song.
- gamemus --type imf-idsoftware-duke2 hesbacka.imf -c cmf-creativelabs:out.cmf
convert the Duke Nukem II song
hesbacka.imfinto a CMF file saved asout.cmf. Because both IMF and CMF formats use Ad Lib/FM instruments, the instruments are converted as-is, with no replacement instrument bank required. Duke Nukem II however, plays its IMF songs at a different speed to the normal format, so theimf-idsoftware-duke2file type must be manually specified to get the correct tempo.- gamemus capture.dro -n gm.mid -c mid-type0:out.mid
convert the DOSBox Ad Lib capture
capture.drointo a MIDI file calledout.mid, using the instruments loaded fromgm.mid.Replacing the instruments is required here, because MIDI files cannot use Ad Lib instruments. The first instrument encountered in
capture.drois replaced with the first instrument used ingm.mid(which may not necessarily be MIDI instrument #1/piano.)
Notes
Exit status is 0 on success, non-zero on failure (1 for bad parameters, 2 for critical errors such as being unable to open the the archive file, 3 for more information needed, 4 for non-critical errors such as being unable to insert one of many files, 5 for uncommon failures like running out of disk space.)
All the file formats supported by this utility are fully documented on the Game Modding Wiki.
Bugs and Questions
Report bugs at http://www.shikadi.net/camoto/bugs/
Ask questions about Camoto or modding in general at the RGB Classic Games modding forum
Copyright
Copyright (c) 2010-2012 Adam Nielsen.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
