From j_hearon at hotmail.com Thu Sep 6 10:51:00 2018 From: j_hearon at hotmail.com (James Hearon) Date: Thu, 6 Sep 2018 17:51:00 +0000 Subject: [CM] env->channel, and float-vector->channel Message-ID: Hi, I'm having some confusion about successive edits using env->channel vs. float-vector->channel. For example if I loop employing env-channel and a vector as an envelope, then I see the successive edits every 1k samples; but when I try to do that using float-vector->channel the spacing is squished. Float-vector->channel works fine if I employ the vector as envelope across the whole snd., but I'm failing to understand how to employ it for successive back-to-back edits within the snd. Thank you for Snd 18.7! Regards, Jim (set! (mus-srate) 48000) (let* ((mysize 8) ;size of vector for envelope pairs (fsize 48000) ;size of the snd (myvec (make-float-vector mysize)) ) (new-sound "test.snd" :size fsize) (insert-silence 0 fsize) (map-channel (lambda (y) 0.5)) (float-vector-set! myvec 0 0.1);x1 (float-vector-set! myvec 1 0.5 );y1 (float-vector-set! myvec 2 0.5 );x2 (float-vector-set! myvec 3 1.0 );y2 (float-vector-set! myvec 4 0.75 );x3 (float-vector-set! myvec 5 -1.0 );y3 (float-vector-set! myvec 6 1.0 );x4 (float-vector-set! myvec 7 0.0 );y4 (do ((i 0 (+ i 1000))) ((= i 24000)) (env-channel (make-env myvec :duration 0.015 :scaler 1.0) i 1000 0 0 ) ;(float-vector->channel myvec i 1000 0) ;place float-vector in the editor ;XXX )) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Thu Sep 6 11:30:10 2018 From: bil at ccrma.Stanford.EDU (bil at ccrma.Stanford.EDU) Date: Thu, 06 Sep 2018 11:30:10 -0700 Subject: [CM] env->channel, and float-vector->channel In-Reply-To: References: Message-ID: You're talking about the length of each blip? In the env-channel case, the vector is treated as an envelope and applied to .015 seconds of samples, but in the float-vector->channel case, the vector itself is simply copied into the file. It only has 8 samples, so in the float-vector->channel case, the blips are 8 samples wide, rather than .015 * 48000 = 720 samples. (By the way, I think you don't need the insert-silence statement -- it just adds 48000 samples to the overall file length). From j_hearon at hotmail.com Fri Sep 7 10:13:09 2018 From: j_hearon at hotmail.com (James Hearon) Date: Fri, 7 Sep 2018 17:13:09 +0000 Subject: [CM] env->channel, and float-vector->channel In-Reply-To: References: Message-ID: Hi, Thank you for that info. I understand now where I was getting confused re: float-vector->channel and see I need to adjust the vector size as I go. Clear now. Regards, Jim ________________________________ From: cmdist-bounces at ccrma.Stanford.EDU on behalf of cmdist-request at ccrma.Stanford.EDU Sent: Thursday, September 6, 2018 7:00 PM To: cmdist at ccrma.Stanford.EDU Subject: Cmdist Digest, Vol 124, Issue 2 Send Cmdist mailing list submissions to cmdist at ccrma.stanford.edu To subscribe or unsubscribe via the World Wide Web, visit https://cm-mail.stanford.edu/mailman/listinfo/cmdist or, via email, send a message with subject or body 'help' to cmdist-request at ccrma.stanford.edu You can reach the person managing the list at cmdist-owner at ccrma.stanford.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Cmdist digest..." Today's Topics: 1. env->channel, and float-vector->channel (James Hearon) 2. Re: env->channel, and float-vector->channel (bil at ccrma.Stanford.EDU) ---------------------------------------------------------------------- Message: 1 Date: Thu, 6 Sep 2018 17:51:00 +0000 From: James Hearon To: "cmdist at ccrma.Stanford.EDU" Subject: [CM] env->channel, and float-vector->channel Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, I'm having some confusion about successive edits using env->channel vs. float-vector->channel. For example if I loop employing env-channel and a vector as an envelope, then I see the successive edits every 1k samples; but when I try to do that using float-vector->channel the spacing is squished. Float-vector->channel works fine if I employ the vector as envelope across the whole snd., but I'm failing to understand how to employ it for successive back-to-back edits within the snd. Thank you for Snd 18.7! Regards, Jim (set! (mus-srate) 48000) (let* ((mysize 8) ;size of vector for envelope pairs (fsize 48000) ;size of the snd (myvec (make-float-vector mysize)) ) (new-sound "test.snd" :size fsize) (insert-silence 0 fsize) (map-channel (lambda (y) 0.5)) (float-vector-set! myvec 0 0.1);x1 (float-vector-set! myvec 1 0.5 );y1 (float-vector-set! myvec 2 0.5 );x2 (float-vector-set! myvec 3 1.0 );y2 (float-vector-set! myvec 4 0.75 );x3 (float-vector-set! myvec 5 -1.0 );y3 (float-vector-set! myvec 6 1.0 );x4 (float-vector-set! myvec 7 0.0 );y4 (do ((i 0 (+ i 1000))) ((= i 24000)) (env-channel (make-env myvec :duration 0.015 :scaler 1.0) i 1000 0 0 ) ;(float-vector->channel myvec i 1000 0) ;place float-vector in the editor ;XXX )) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Thu, 06 Sep 2018 11:30:10 -0700 From: bil at ccrma.Stanford.EDU To: James Hearon Cc: "cmdist at ccrma.Stanford.EDU" Subject: Re: [CM] env->channel, and float-vector->channel Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed You're talking about the length of each blip? In the env-channel case, the vector is treated as an envelope and applied to .015 seconds of samples, but in the float-vector->channel case, the vector itself is simply copied into the file. It only has 8 samples, so in the float-vector->channel case, the blips are 8 samples wide, rather than .015 * 48000 = 720 samples. (By the way, I think you don't need the insert-silence statement -- it just adds 48000 samples to the overall file length). ------------------------------ _______________________________________________ Cmdist mailing list Cmdist at ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/listinfo/cmdist End of Cmdist Digest, Vol 124, Issue 2 ************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.gogins at gmail.com Sun Sep 16 09:52:22 2018 From: michael.gogins at gmail.com (Michael Gogins) Date: Sun, 16 Sep 2018 12:52:22 -0400 Subject: [CM] Composing in Lisp Message-ID: This is party a reply to the question whether people are still using Common Music version 2, i.e. the Common Lisp version, and party some news. Yes, I am using the Common Lisp version of Common Music, partly because it has been extended with Drew Krause's code, and partly because I find that the Common Lisp world is a bigger and deeper world world than the Scheme world. For my news, see: https://michaelgogins.tumblr.com/post/178126207468/composing-in-lisp Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com