I am using matlab to construct a simple synthesizer, starting from fundamental sin waves. When playing two successive pitches their is a "tick" noise appearing at the junction which I would like to remove. I have tried to correct the phase angle of the second pitch in order to adjust the junction between the two sin waves but this doesn't get rid of the noise.
(I have also tried to shape the sequence by damping at junction, which works, but also gives an annoying "staccato" feeling.)
My question's are:
what is causing this behavior?
How could (and should) I remove it?
Is there good introductory literature to fundamental sound processing (I am quite new to sound design but have some background in mathematics)?
Thanks a lot for you help.