It would seem to me that you are drawing the two waves with some kind of
sine function.

Y1 = Sin(x1+Phase1)
Y2 = Sin(x2+Phase2)

So all you have do to create the third is
Y3 = Sin(x1+Phase1) + Sin(x2+Phase2)

Remember of course that Y3 will have a max/min of +2/-2 assuming of course
that originals are +1/-1 range as they should be with no amplitude
adjustment.




-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor
Sent: Monday, June 06, 2011 2:16 PM
To: Flash Coders List
Subject: [Flashcoders] dynmically adding waves together problem

Hi All,
 
I need to draw waves dynamically which can be influenced at runtime.
These waves then have to add together and show the result in a third wave.
 
Here you can see the problem graphically:
 
http://www.codobyte.com/waves/
 
Every help is welcome!
 
TIA,
Cor van Dooren
 
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to