Motor Engine Car RPM's Sampling

boisesmp's icon

Hi This is Boi, I'm currently doing this patch where I want to crossfade 5 different looping sounds from 1 to 5 imitating the sound of RPMs increasing of a car engine. Typically used in sound implementation for car engines in game audio and what you would easily do in FMOD or WWISE.

The problem I have is that when I move the slider fast, transitions sound with clicks.

I did 2 versions of the patch, one using floating numbers in Max and another trying to use MSP signal as match as possible to avoid those clicks. None of them worked for me.

I would really appreciate some help, I'm really new with Max and really need to have this tool ready to use.

Thanks very much!!

Motor-Sampling.maxpat
Max Patch
Motor-Sampling1.maxpat
Max Patch
spectro's icon

The changing values from the sliders can cause discontinuities in the amount of gain and result in audible clicks, especially when changed rapidly. This is due to the output of the slider being typically 'sampled' at the scheduler rate - much lower than the audio sample rate. To avoid this problem, the scheduler rate values need to be interpolated rather than simply turned into a signal. To that end, try replacing the [sig~] objects in your patch with [line~] (preceded with a message [$1 20]).

Also, FYI in Max, use Edit/Copy Compressed on selected patches (or fragments of a patch) and you can paste that directly into your message on this board

boisesmp's icon

That worked for me Spectro. Thank you very much for replying. Good help! Thanks