On 2012-05-16 06:32, ronni montoya wrote:
Hi list, one question: i have 2 abstractions that are generating
streams of data, ,how can i interpolate between this 2 streams? for
example when my slider is the left then  the output is stream "a" and
when my slider moves to the right it gradually convert into stream "b"
.  Is there is an easy way for doing this?


Sounds like panning. The simple version is to multiply one stream by the slider value and the other by the maximum slider value minus the slider value, then divide both by the maximum slider value. So the easiest way is to have your sliders go from zero to one. If you want equal power pan you need to square the values first and then take the square root afterwards.

Martin

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to