What can cause clipping?

lordcacops's icon

I have several synthesizers working at the same time and I am getting a clipping sound. Is it more likely that this is due to something audio related or something related to the capacity of the cpu or ram? How could I fix it?

The clipping noise is regular: it occurs at regular intervals.

wendycarlos's icon

Lordcaca That ugly your attitude, not only surges and greet and you demand answers to problems resulting from not having read the documentation.

dhjdhjdhj's icon

Do you still get clipping if you reduce the volume of one or both of the synths?

lordcacops's icon

what part of the documentation should I read?

wendycarlos's icon

You read the documentation that comes with Max, and search for "manners" in google.

greetings

Jan M's icon

It must be a cultural difference of some sort.
But somehow i am not able to detect "bad manners" in the question (in oposition to the accusation) :)

@lordcacops have you checked the audio levels of the single synth and the sum? how are you mixing the signals? if you simply add them amplitude might exceed 1.

so if you want to add i.e 3 signals multiply each by 0.33 before you sum them.

Hard to say more without seeing the pach.

j

Wetterberg's icon

On the off-chance that this thread doesn't devolve in to further name calling:

Often what people describe as "clipping" is buffer underruns caused by running out of computer power in one way or the other.
If this is the case, lordcacops, then please post your buffer settings, and the amount of cpu that particular setup uses.

Roman Thilenius's icon

the cultural difference of class "gender".

clipping at regular intervals ... how fast are these intervals if i may ask? maybe it is the drum track of a clip hop piece?

Jan M's icon

... or a track by Clip Richard.... ?

lordcacops's icon

@Wetterberg

Where are such items?

Wetterberg's icon

options->audio status

Roman Thilenius's icon

***taps on the desk, waiting for someone to ask "whats options->audiostatus means?"

lordcacops's icon

I/O Vector Size: 2048
Sampling rate: 44100
Signal Vector Size: 64

Right Now the CPU utilization is around 70%, but since it is a generative music composition this can vary being somewhat impredictable.

Signals used: 72
Function Calls 1541

Peter McCulloch's icon

If you increase the signal vector size you can get more performance out of it usually. (Try 128 or 256). If you're at 70% that often means you'll be getting dropouts (which are different than clipping).

There are other tricks for optimizing performance including splitting your patch up so that it has multiple top-level patches and building it inside of poly~. (Check the forum for these discussions, and follow the more recent threads as things change over the years)

wendycarlos's icon

Thanks to the people who care to answer

motherfucker

vichug's icon

I/O vector size seems a bit much, maybe reducing it (1024 or 512) will actually help

Roman Thilenius's icon

if you need realtime data input (such as midi), use a vector size of 32 (==best for latency.)

if you dont need that, then use the highest value available (==best for CPU.)

if you are wendy and you try to become raja 2.0, first carefully study the holy asswipe bible and do some preliminary exercise before going online with the show.

lordcacops's icon

Could drop outs be my problem? I am seriously using a huge amount of synthesizers.189 in total. Am I being a douche.. I mean.. Pushing it too far?

Wetterberg's icon

Yes, drop outs could be your problem.

>Often what people describe as "clipping" is buffer underruns caused by running out of computer power in one way or the other.

:) If you're running @ 70%, 64 samples, then increasing that to like 256, and perhaps killing one or two processes will definitely help.

lordcacops's icon

I am currently doing this on a macbook. Theres another program that has to run for my machine to work and maybe thats depleting some of the cpu resources. ¿If I connect it to an interface soundcard will I reduce the probability of the problem persisting? I will eventually have to connect it to an interface to allow for the quadraphonic output. I am attaching the patcher file, but you will not be able to listen to the composition since it requires the other program I mentioned running at the same time, and connected via externals and such.

On a side note: is wendycarlos the actual celebrity or someone with the same name?

Nuevaidea.maxpat.zip
zip
wendycarlos's icon

I do not pretend, dear Mazinger..
Raja is inimitable brings in too many directions.

I am not a professed Christian but rather the Eschatological Zoroastrianism, which believes that the balance between farts and bad manners is important.

lordcacops's icon

also... my RAM is a puny 2 GB.

Roman Thilenius's icon

clip drop wipe
hip hop type
tick bang drop
pop;

Roman Thilenius's icon

@OP

i believe that audio drop outs wont happen before the mouse will freeze and GUI objects will stop to update, when your at 99% CPU.