<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><pre>Hi,<br><br>Using (set! *clm-srate* 48000), shows 48000 in the Grace console<br>but when I sprout, the console shows Srate: 44100.0 and <br>resulting .wav file has a 44.1KHz, 16bit header.<br>Seems like :channels is working fine, however from sprout.<br>As written earlier, (with-sound (:srate 48000), etc. works<br>fine too. <br>I'm having the same sprout problem for setting srate with <br>Grace vers. 3.8 and 3.9.<br>Maybe I'm doing something wrong.<br>Regards,<br>Jim<br></pre><br>(load "/home/Grace/insts/insectFM.scm")
<br>(set! *clm-srate* 48000)
<br> <br>(define (myaccrit stop lb ub start-rhy fac)
<br> (process for k = (between lb ub)
<br> for r = start-rhy then (* r fac)
<br> until (< r .01)
<br> until (>= (elapsed) stop)
<br> do
<br> (let ((locust '(0 0 40 1 95 1 100 .5))
<br> (bug_hi '(0 1 25 .7 75 .78 100 1))
<br> (amp '(0 0 25 1 75 .7 100 0)))
<br> (send "fm-insect" (elapsed) r k .5 amp 60 -16.707 locust 500.866 bug_hi .346 .500 )
<br> (wait r) ))
<br> )
<br> <br>(sprout (myaccrit 10 200 1295 .01 1.5) "Mywave.wav" :channels 1 :srate 48000)<br><br><br>                                            </div></body>
</html>