Forums > MaxMSP

how to create frequency shift a signal

June 24, 2012 | 9:30 pm

hello all…

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



etk
June 24, 2012 | 10:14 pm

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.

– Pasted Max Patch, click to expand. –

June 25, 2012 | 6:30 pm

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


Viewing 3 posts - 1 through 3 (of 3 total)