[PD] cosinesum vs sinesum in arrays

Peter P. p8rpp at aol.com
Wed Jan 29 22:08:43 CET 2014

* Alexandros Drymonitis <adrcki at gmail.com> [2014-01-29 21:02]:
> When sending the cosinesum message to an array, don't you have to specify
> the number of points too? And specifically a power of two? Plus, for a
> cosine you have to specify the first partial to have zero amplitude and the
> second an amplitude of 1 (or less). So the message should be something like
> [; array999 cosinesum 1024 0 1(
> First the name of the array, then the cosinesum function, table length and
> partial strengths. Hope I got your question right..

Thanks, you are right about the message format. My questions is with
regard to a different behavior of sinesum vs cosinesum in Pd(0.45.0)
when specifying the partials though.

> On Wed, Jan 29, 2014 at 6:01 PM, Peter P. <p8rpp at aol.com> wrote:
> > not sure if I am getting something wrong here, but it seems that
> > sending the message
> >
> > ; cosinesum array999 1
should of course read:

; cosinesum array999 512 1

> > does something different (besides an obvious phase shift between sine
> > and cosine functions) to the resulting contents of that table:
> >
> > the first partial on cosinesum seems to be the DC component, while the
> > first partial in sinesum is the, well, first partial.
> >
> > Accordingly, the second partials have double frequency in sinesum as
> > in cosinesum.
> >
> > Perhaps this is intentional, but was just wondering...

best, Peter

More information about the Pd-list mailing list