how to create frequency shift a signal
i am a newbie when it comes to synthesis and wanted to create a m4l audio effect which should take an input signal (say a pure sinewave) and produce an output which would be the original signal shifted by n frequencies (based on the value of a multiplier).
so if an input sine is at 10 Hz, the multiplier set to 2, the output signal should be at 20 hz.
what would be the best way to do this in the time domain using msp?
thank you for all your time
This patch here might help you in the right direction. With that said, if all you are trying to do is change the frequency of a sine wave you’d be much better off synthesizing the frequency rather than changing the audio signal of that frequency afterwords afterword–changing the qualities of an audio signal can cause potentially unwanted sounds to emerge/things to happen. In the instance of wanting to shift something so pure as a sine wave, you’d be best hooking up a float object to a cycle~ and controlling the pitch that way. This patch here works well, and I’m sure there are better ones out there.
----------begin_max5_patcher---------- 795.3ocyWtsaiBCDF9Z3ovh81jHaNkztqVo8EXeAVUU4DLD2B1HvoaSqZe1W e.1RabSHoTRkPfv1LLyG+yLlGcc7VxumT6AtD7GfiyitNN5gTC3zbuiWA99U 43Z8x7Xj+xWdi2DyTBx8B8v4bbRAotFfZmhlnmPt3oAKZGLkyDLbAQO0upn3 71YXaJnrbhP+VPuLHei3sipLRM8AsQP9yfMCaVoXaIwDOddfqZlpDKVslxxt thrRXlMXNR9jf4Q5yJq.7gyffqTOwSttpSS5ISVwKJHLwNPAy1BvaRnbPMMi gyATFXMoh.lN8m1vz7AASv8ioxJRszYwBJm0gGnEJDfPgpKvlS6CfHM+PPM. QwW7gHnR5fyH6PPdIgMAjy4k1EVwGIw7GZgkcXFXnRPXuooeTbG43bMSWLvx weLcJndMMU.DqIfRpzIzxQafMZTjh6xgvnntxpH3GRVI3YY4Viuf8FEk3JYH KHUWSX3k4jtwhcoyNZDp7CvdSeV.e4Ct+GKLemZx0jbPfusnGMHoM9GYZyRL KyaxApK2vkPMWBC9L3xsjs1fB7HghcAQ3QBEkNYhsK8.RHMjhtXVzvCIUCcy GrcHk+7yR6bs2ziZnFpDC+zZHAVIqZxukPlgoo6o6j+Yu6z6xHS5Ep4xhAtt SZYNd6y1HR3YoviY2WpDqCpgZyrL8eB6rqllmoFeWqY+1uUl7+Qqj7xGTd3C uHV0w2Lh228NI3RdHAuxJDCNBTAObn9pBtQmnTHMmKew17V+SrXw95AKWNsP 95TCMCNHZDY.fE8Rhz7mCMRjEgeFsnJSSEOCxnOTvu17qUfPopBDZivvyRYl ljp9jLEX1jCxdIYsE7xor29inZKpF+07qluoZUqWz96kfWxPSH0BJSuk7NKR oC6rn0zjDBqqlJgVqjYZtBs9kr29Sbe7mvwyef8veT6Ibr7mfuX7A0G9DLZ9 iZ+UGlOwim+D1G+ANd9yWr7K+9jeo5ZCPew7mQhO98U+bJ7wz9.WVdGoptwl ZWQ1n8Fdk513ItlMMXtUaQuJxcz10G3pr1St+CfIJmcg -----------end_max5_patcher-----------
i understand your points… indeed it may be best not to rely on a transform for such a task.
your patch made me understand really the limits of such an approach :)
so many many thanks for your time and effort