[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Re: error in COsc help



On 12/05/2014 06:29 PM, Rohan Drape wrote:
"Due to summing, the peak amplitude is twice that of the wavetable."

But this isn't true

?

b = Buffer.alloc(s, 512, 1, {arg n; n.sine1Msg(1)});
{COsc.ar(b, 100, 5)}.plot(0.1);

I think in your example the max over the period is approx. 1.994, actually, not 2. I didn't check this analytically, but I subdivided one of the resultant signal's periods into 200 million pieces and took the max of the abs of the discretized signal in Matlab... So, pretty confident

Please try my original example (in your style):

b = Buffer.alloc(s, 512, 1, { |n| n.sine1Msg(1) });
{ COsc.ar(b, 1, 1) }.plot(2)

There are plenty of other egregious examples

Anyway, the point is that the statement is not true in general, so it may be misleading for people


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/