Best way to add two signals?

I have a dsp effect that I’ve applied different values to channel 0 and channel 1, and I would like to mix the two into one mono signal. What is the simplest way to add the two channels, to get the same result as mixing two tracks in a DAW? I can’t apply the effect in series or it won’t sound correct, I need to apply it in parallel and sum the signals together.

Thanks

Not sure if it’s the most efficient way, but you could use

buffer.addFrom(add R to L);
buffer.copyFrom(copy L to R);
1 Like