Re: [CM] polyoid-partial-amps-and-phases gen

2021-10-01 Thread bil

Thanks for the bug report.  That example is obsolete;
polyoid is now a wrapper around polywave.  I didn't
notice it because it is commented out.  noid and polyoid
play games with initial phases -- they were part
of the minimum-peak-amplitude project (see
sndscm.html#peakphasesdoc).

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


[CM] polyoid-partial-amps-and-phases gen

2021-10-01 Thread James Hearon
Hi,
I was looking at "other generators" in generators.scm, and became confused a 
bit by the example:

(with-sound (:clipped #f :channels 2)
  (let* ((samps 44100)
(n 10)
(gen (make-noid 1.0 n 'min-peak))
(gen2 (make-oscil n ((polyoid-partial-amps-and-phases gen) (- (length 
(polyoid-partial-amps-and-phases gen)) 1)
(do ((i 0 (+ i 1)))
((= i samps))
  (outa i (noid gen))
  (outb i (oscil gen2)

I can do something like:
 (gen2 (make-oscil n 0.25)) )

to get an output, but seems like that polyoid-partial-amps-and-phases gen may 
be something old or no longer in use?  But the example seems interesting in 
terms of phase so was trying to unravel it to try to understand what it was 
meant to demonstrate.

Regards,
Jim
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist