MIDI to Audio CD conversion on FreeBSD
19. November 06This a small recipe for converting MIDI files to the more ‘portable’ CD audio format. The recipe is useful when you would like to show off your musical compositions and don’t want to lug your FreeBSD system around. :)
-
Audio tracks on an audio CD are stored in 16-bit signed PCM format. So the first step is to ‘render’ your MIDI composition into this format. I have found that timidity++ (in the FreeBSD Ports collection) works reasonably well for ‘rendering’ piano pieces:
% timidity -Or1slS -o foo.pcm foo.mid
Here the –Or option selects ‘raw’ output, and the subsequent modifiers select 16-bit signed (1s) linear (l), stereo (S) PCM. The -o option selects the output file.
timidity++ offers a very large number of options to control the MIDI rendering process; do be sure to skim its manual page.
-
Once you have rendered your MIDI files, the next step is to burn the rendered PCM files to CD. This turns out to be simple:
% sudo burncd -f /dev/acd0 audio foo1.pcm foo2.pcm foo3.pcm fixate
burncd is part of the FreeBSD base system (i.e., a standard tool).
In my experience CD-RW media doesn’t work well in commercial CD players. The CD-R media I had with me seemed to work. YMMV.
0 Kommentare zu “MIDI to Audio CD conversion on FreeBSD”
Please Wait
Kommentar hinterlassen
You must log in to post a comment.