sfmix


NAME

sfmix − mixes "N" number of one-channel soundfiles together.

SYNOPSIS

sfmix [−a amp][−b][−s][-o outputSoundfile] inputSoundfile(s)

DESCRIPTION

sfmix mixes the soundfiles given on the command-line, and places the output in a stereo soundfile.

The input soundfiles (which must be single-channel) are spread equally across the stereo field in the following manner: the more soundfiles, the "closer together they are" in the stereo field. "Equal power" panning is used to avoid "holes" in the center.

USAGE

sfmix mono1.wav mono2.wav

The soundfile mono1.wav will be in the left channel only, and mono2.wav will be in the right channel only. The output will be put in the default output soundfile sfmixOut.snd .

sfmix -a 80 mono1.wav mono2.wav mono3.wav

The soundfile mono1.wav will be in the left channel only, mono2.wav will be in the center, and mono3.wav will be in the right channel only. The output will be boosted or attenuated to be no more than 80 dB.

sfmix -b mono1.wav mono2.wav mono3.wav mono4.wav

The soundfile mono1.wav will be in the left channel only, mono2.wav will be 1/3 of the way to the right channel, mono3.wav will by 2/3 of the way to the right channel, and mono4.wav will be in the right channel only. The output soundfile will be boosted to the maximum 16-bits will allow (about 96 dB).

sfmix -o out.wav mono1.wav mono2.wav mono3.wav mono4.wav mono5.wav

The output will be put in out.wav and the rest of the soundfiles will be equally panned across the stereo field, from left to right.

OPTIONS

−a N

Set the maximum level of the output soundfile to N decibels.

−b

Boost the output soundfile to the maximum amplitude, about 96 dB.

−s

Suppress normal screen output. Useful for calling from scripting programs, such as Python.

−o outputSoundfile

Place the output in the outputSoundfile .

BUGS

This program will only work with WAVE, AIFF, AIFC, and the old NeXT/Sun "snd" format soundfiles, that are 16-bit PCM encoded, with 1 or 2 channels.

AUTHOR

Arun Chandra <arunc@evergreen.edu>

sfmix is free software.