Creating Pulse Trains with Harmonics in Max

MENGJIA LYU's icon

Hello, I am very new to Max, and need to implement an audio alarm that contains a series of repeating pulses, where each pulse has to have a fundamental frequency somewhere between 150 to 1000 Hz, and there must be at least four harmonic sounds from 300 to 4000 Hz.

My question is : would it be possible for me to create such an audio file from Max? I found out a patcher(https://music.arts.uci.edu/dobrian/maxcookbook/generate-burst-audio-pulses) that creates 25 bursts of pulses. However it obviously doesn't satisfy the requirement mentioned above.

Could anyone give some advice before I start digging into Max? Thank you!

-Yumeka

👽'tW∆s ∆lienz👽's icon

probably easiest just to use the new MC objects, something like this:

(there's also mc.train~ but for audio rect~ is antialiased)

here's the patch if you ever need:

Max Patch
Copy patch and select New From Clipboard in Max.


edit: oh, i think i read more clearly now, you need a set of 'pulses' of the sound(not necessarily starting from the waveform of a 'pulse-train')... i suppose you could still use the above patch, but apply an adsr~ to it, in order to create the timing you need...

Roman Thilenius's icon


not to forget §1: make sure your professor is a member of that same forum, too.

Gregory Taylor's icon
riccardo dapelo's icon