[CM] Grace, clm, s7, srate

Heinrich Taube taube at illinois.edu
Sun Aug 4 11:19:38 PDT 2013


On Aug 3, 2013, at 7:17 PM, James Hearon <j_hearon at hotmail.com> wrote:

> Hi,
> 
> Using (set! *clm-srate* 48000), shows 48000 in the Grace console
> but when I sprout, the console shows Srate: 44100.0 and 
> resulting .wav file has a 44.1KHz, 16bit header

I have this fixed, it'll be in the next beta hopefully tomorrow.

btw in your example you will want to pass  (elapsed #t) to a clm instrument  not (elapsed). the difference is that (elapsed #t) returns the absolute score time rather than the (relative) time elapsed since the process started.

also clm instruments are functions so I would just do

(fm-insect  (elapsed #t) r k  .5 amp 60 -16.707 locust 500.866 bug_hi  .346  .500 ) 

rather than

(send "fm-insect"  (elapsed ) r k  .5 amp 60 -16.707 locust 500.866 bug_hi  .346  .500 ) 

send  works but calling functions is easier -- in the next release the dictionary and example files will just call functions.




More information about the Cmdist mailing list