[CM] moving-autocorrelation
James Hearon
j_hearon at hotmail.com
Mon Dec 8 07:42:37 PST 2025
I see where I becoming confused with moving-autocorrelation. Makes sense now.
Thank you,
Jim
________________________________
From: bil at ccrma.Stanford.EDU <bil at ccrma.Stanford.EDU>
Sent: Thursday, December 4, 2025 10:24 AM
To: James Hearon <j_hearon at hotmail.com>
Cc: cmdist at ccrma.Stanford.EDU <cmdist at ccrma.Stanford.EDU>
Subject: Re: [CM] moving-autocorrelation
The moving-autocorrelation mus-data array does not
have any data until you call the generator.
(let* ((n 512)
(hop 128)
(ac (make-moving-autocorrelation (make-readin "oboe.snd") n hop
))
(mydata (make-float-vector hop)))
;; call it to get some data:
(moving-autocorrelation ac) ; fill mus-data
(format #t "mus-data:\n")
(let* ((data (mus-data ac))
(len (length data)))
(format #t "length data: ~A\n " len )
(set! mydata (mus-data ac))
(do ((i 0 (+ i 1)))
((= i hop))
(format #t "~A ~0,12F\n " i (mydata i) ) )))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20251208/6a06c30c/attachment.html>
More information about the Cmdist
mailing list