VOGONS

Common searches


First post, by truth_deleted

User metadata

Inside dosbox, pressing the key combination CTRL-ALT-F8 will Start/Stop the recording of a raw MIDI file. This file is sent to a /capture directory by default (for example, c:\dosbox\capture). One method to convert the raw MIDI file to the wav format is by fluidsynth and sox, like so in the case of Windows:
fluidsynth.exe -F output.mid Scc1t2.sf2 setup_000.mid
sox.exe -t raw -r 44100 -e signed -b 16 -c 1 output.mid output.wav

The file named setup_000.mid is the raw MIDI file; Scc1t2.sf2 is a soundfont file (substitute with your .sf2 soundfont); and output.mid if the audio file which is generated by the fluidsynth program.

Sox uses the output.mid audio file as input and outputs a "wav" file, given the above command. Then, a third program is optional for compressing the wav file into the "ogg" or "mp3" format.

The fluidsynth program was built in mingw32 and attached. The sox program is obtained from here: http://sourceforge.net/projects/sox/files/sox … 32.zip/download ; only sox.exe and zlib1.dll are required from that zipped archive.

Attachments

  • Filename
    fluidsynth.zip
    File size
    564.17 KiB
    Downloads
    156 downloads
    File comment
    fluidsynth software
    File license
    Fair use/fair dealing exception

Reply 1 of 1, by truth_deleted

User metadata

Have a (simpler) second method to convert MIDI output to an audio file. Attached is the fluidsynth binary with dependent libaries (dll files) which were compiled by mingw32/gcc. This binary was compiled with libsndfile, so the "sox" program is not necessary to create a "wav" audio file.

To convert the "captured" raw MIDI file to the wav format (using attached fluidsynth+dlls):
fluidsynth.exe --chorus no --reverb no --gain .6 -F doom2_000.wav Scc1t2.sf2 doom2_000.mid

The binary+dlls are in the attached archive but a soundfont is also required, in this case Scc1t2.sf2 was used. The parameter "gain" provides increased volume in output; chorus and reverb are turned off.

Attachments

  • Filename
    fluidsynth-2.zip
    File size
    718.51 KiB
    Downloads
    183 downloads
    File comment
    fluidsynth v.2 software
    File license
    Fair use/fair dealing exception