Say I have 4 inputs {A,B,C,D}, and an amount variable amt, that varies between 0 and 1.
Code: Select all
when amt = 0 : A = 1, B = 0, C = 0, D = 0.
when amt = 1 : A = 0, B = 0, C = 0, D = 1.
Or is there a nice (polynomial?) way of doing it on the fly?
I know i can use 4 sine waves with offset phases to mix things, but I'd like to avoid using four trig functions for each sample.
Thank you in advance for any help!