Path: utzoo!attcan!uunet!van-bc!rsoft!mindlink!a577 From: a577@mindlink.UUCP (Curt Sampson) Newsgroups: comp.music Subject: Re: Additive Synthesis Message-ID: <3740@mindlink.UUCP> Date: 5 Nov 90 17:45:37 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 19 > umbirch2@ccu.umanitoba.ca writes: > > I may not have been as clear on this as I thought. I want to take two > completely different waveforms playing different notes and combine them > into one waveform playing both notes at there proper pitches with the right > sound. It's surprisingly simple, actually. Just add the two waveforms together, sample by sample. You may then have to scale the result, though, as adding two full code words will cause an overflow. This is easily done by shifting your output n bits right after adding 2^n voices, e.g., in a four bit system adding two full code words (1111) will produce 11110, which becomes 1111 after being shifted to the right. cjs -- Curt_Sampson@mindlink.UUCP (Vancouver, B.C., Canada) {uunet|ubc-cs}!van-bc!rsoft!mindlink!Curt_Sampson curt@cynic.wimsey.bc.ca BBS: +1 604 687 6736