On Sat, 29 Jan 2005 10:28:23 +0100
Fons Adriaensen <fons.adriaensen(a)skynet.be> wrote:
On Sat, Jan 29, 2005 at 12:14:49AM +0100, Florian
Schmidt wrote:
So there's plenty room for optimization (and
some return value checking
will be added too ;)).. If you know some tricks, let me know.. The
sourcecode is pasted below for easier reference.
For a typcal stereo room simulation, what you need is actually
| L' | | a b | | L |
| | = | | | |
| R' | | c d | | R |
where a, b, c, d are the responses to be convolved with.
In its present form, you code will do this if you split inputs
and recombine outputs, but only with a lot of redundant work.
It could be a good idea to have a more flexible I/O configuration
that would allow this.
Now i grok it.
As a stereo impulse file is a response to a mono impulse placed
somewhere in the room, one needs two stereo response files with the
impulses created at different points in the room.
I will adapt the convolver to be able to load more than one response
file and provide an input for each. And as many outputs as the response
files have channels (for two stereo response files, that's two channels
'cause they are stereo)..
flo
--
Palimm Palimm!