Convolver

Home News Download Usage Command line utilities Feedback Troubleshooting Links

makeIR

 
Web This site

 

makeIR input.txt output.wav

makeIR generates a wav file (output.wav) from a text file specification (input.txt). This can be used to generate impulse response files manually. (This is mainly for test purposes.)

The layout of input.txt is

<format> <bits per sample> <channels> <sample rate>
<sample 1, channel 1> ... <sample 1, channel channels>
:
<sample N, channel 1> ... <sample N, channel channels>

where

 <format>
is PCM or IEEE
<bits per sample>
is normally 32, 16 or 8
 <channels>
is the number of channels
 <sample rate>
is the sample rate in Hz (eg, 48000, 44100, 22050, 11025, or 8000)
 <sample n, channel c>
is the value of the nth sample for the cth channel

For example

PCM 32 2 44100
2	2
0	0
0	0
0	0

specifies a 2-channel, 32-bit PCM filter of length 4 that doubles the volume of the source.

Additionally, to generate WAV files that have speaker placement information or higher sample resolutions, the input.txt can be of the form:

<format> <bits per sample> <channels> <sample rate>
<valid bits per sample> <channel mask>
<sample 1, channel 1> ... <sample 1, channel channels>
:
<sample N, channel 1> ... <sample N, channel channels>

where

<format>
is ExtensiblePCM or ExtensibleIEEE
<valid bits per sample>
can be set to a number no greater than the <number of bits per sample> For example, it is possible to specify 20 valid bits in a 32-bit container by setting <valid bits per sample> to 20 and <bits per sample> to 32.
channel mask
contains a mask indicating which channels are present in the multi-channel stream. The least-significant bit represents the front-left speaker, the next bit corresponds to the front-right speaker, and so on.  Hexadecimal input can be entered using the normal 0x prefix.

 

Home ] Up ] perftest ] convolverCMD ] ConvolverPipe ] [ makeIR ] comparewavs ]

Send mail to with questions or comments Convolver or about this web site.
Copyright © 2006-8 Convolver
Last modified: 16-Jan-2008 20:24 -0000 SourceForge.net Logo