"Paul B. Webster VK2BZC" wrote: > > Scott Dattalo wrote: > > > You could cascade calls to this routine for mixing more than two > > tones. For N tones you'd need N-1 calls. That's not terribly > > efficient, but at least you'd have a way of combining fixed waveforms > > with non 2^k weighted coefficients. > > For three inputs, it'd be rather more efficient to embed the extra > conditionals in the macro, while for four it's moot, but likely easier > than all the parameter substitution required to "call" the routine. One of the tricks that this routine does is to simultaneously multiply and divide. This works well for two operands, but I don't see how to make it work for three. Also, the 'multiplication' is a bit-by-bit either-or operation. In other words, at each stage of the multiplication, the cumulative product is either being increased by one coefficient or the other. Short of going to trits, I don't see how to handle three operands at the same time. Could you be more specific? Scott