Forums > MaxMSP

Major CPU spikes when routing audio through MATRIX

August 11, 2010 | 2:01 am

All I’m trying to accomplish with this patch is to have 4 effects (with random parameters) that can be routed using MATRIX without any major CPU spikes.

When I am running audio through the matrix the CPU stay around 5% – 10%. Good, no problem. But when the audio reaches near silence or is completely silent the CPU will spike up to about 50%. As soon as audio becomes loud again – the cpu drops right back down to about 5% – 10%. Weird.

The patch works as intended right now and none of this would really be a problem if I only wanted to use these 4 effects. But my goal is having 4 of these modules running (for a total of 16 effects) at the same time.

Please take a look at the attached patch (you will need munger~)!

Any help is greatly appreciated!!!

THANKS!!!!

Attachments:
  1. ME_MAINPATCH.zip

August 11, 2010 | 8:17 am

Sounds like a problem with denormals, which means that it would need to be fixed by cycling.

What platform are you running on?

Alex


August 11, 2010 | 3:17 pm

Thanks for the reply! I’m using Windows XP, Max/MSP 4.6.3

My current work around is to have a noise~ object run through the patch at .001 in order to keep the CPU down. But there are still times when running all 4 modules (16 effects) will max the CPU out at 100% and completely lock everything up forcing me to restart my computer.

Thanks!


August 19, 2010 | 10:32 pm

I still can’t figure this one out. Any ideas guys?


August 19, 2010 | 10:41 pm

Wondering about denormals, if that is the problem, could you use a threshold audio level (like 0.01) and if the audio is below that, multiply by *~ 0. ? Would that solve a denormal problem, or is it not that simple…


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