[CM] clm instrument won't compile
Bill Schottstaedt
bil at ccrma.Stanford.EDU
Mon May 29 12:03:31 PDT 2006
> Just out of curiosity, can you have arrays in def-clm-struct?
It turns out I forgot that the field type defaults to float, so
the generator field does work in Scheme -- the snd-test.scm case
looks like:
(def-clm-struct sa1 (freq 0.0 :type float) (coscar #f :type clm)
(sincar #f :type clm) (dly #f :type clm) (hlb #f :type clm))
And arrays are doable in that context with vcts:
(def-clm-struct hiho2 (i 0 :type int) (x 0.0 :type float) (v #f :type vct)
(s "hiho") (ii 3 :type int) (xx 1.0 :type float))
But in Common Lisp, the field has to be a number (there's a list
of implemented types in run.lisp line 6770). I can't remember whether
arrays would be hard to implement -- I was so traumatized by wasting
3 or 4 days of hacking on the generator fields that I suppressed
the whole episode.
More information about the Cmdist
mailing list