Modulate signal to square wave?

Dec 8, 2010 at 7:50pm

Modulate signal to square wave?

This seems like it would be easy, but I’m just learning.

I’m trying to modulate an input (adc~) signal to a square wave, the amount of which signal to be modulated is controlled by a slider object. I’m pretty sure I can figure out the slider part, but can anyone point me in the right direction about modulating a signal?


Dec 8, 2010 at 8:09pm

Can you clarify exactly what you mean by ” modulate an input signal to a square wave”?

Do you want to modulate an incoming signal WITH a square wave? If so, modulating the amplitude is easy; frequency, less so


Dec 8, 2010 at 8:31pm

I’m pretty sure I want amplitude modulation.
I guess I should learn more about synthesis before trying stuff like this….


Dec 8, 2010 at 8:34pm

Not at all – we learn by doing, that’s my thought for the day.
I’ll send you a patch in a minute

Dec 8, 2010 at 8:49pm

Thanks a lot Brendan.

Dec 8, 2010 at 9:49pm

Hi. Have you seen MSP Tutorial #8 (Tremolo and Ring Modulation)? It has an example of amplitude modulation. Also, MSP Tutorial #5 (Turning Signals On and Off) has a patcher (“pulsewave”) that demonstrates a square wave.

Dec 8, 2010 at 10:33pm

Totally forgot about the Ring Mod tutorials, good call Mark, but here’s my version anyway

– Pasted Max Patch, click to expand. –



You must be logged in to reply to this topic.