Alle Beiträge im November 2006

This 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. :)


  1. 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.

  2. 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.


References:


Libelf is now in -current

15. November 06

-lelf is now in -current.

Work continues on the libelf test suite in Perforce.


If anyone wants to write BSD-licensed equivalents of GNU binutils (nm, strip, etc.) for FreeBSD, -lelf should help ease the effort.


Warning: include(bottomblock.php) [function.include]: failed to open stream: No such file or directory in /usr/home/dana/data/bsdblogs.droso.org/wordpressmu-1.0/wp-content/themes/cappuccino/archive.php on line 12

Warning: include() [function.include]: Failed opening 'bottomblock.php' for inclusion (include_path='/dana/data/bsdblogs.droso.org/includes/') in /usr/home/dana/data/bsdblogs.droso.org/wordpressmu-1.0/wp-content/themes/cappuccino/archive.php on line 12
Log-In | Wordpress | Cappuccino