[CM] run-time converter problem
cristopher pierson ewing
cewing@u.washington.edu
Mon, 17 Feb 2003 11:22:30 -0800 (PST)
I find it in the section labelled "Useful Functions," which has the
caption "There are several commonly-used functions that can occur in the
run macro. . . ." It is listed along with hz->radians and radians->hz
etc.
Am I reading the listing incorrectly? Anyway, I went ahead and created my
own little macro, to it's no real biggie, Just a question about the
documentation for the function.
thanks,
C
********************************
Cris Ewing
CARTAH Assistant
University of Washington
Home Phone: (206) 365-3413
E-mail: cewing@u.washington.edu
*******************************
On Mon, 17 Feb 2003, Bill Schottstaedt wrote:
> > but seconds->samples is listed in the manual among the run-time converters
> > that are available.
>
> Where? I can't find anything about it. In the lisp code, seconds->samples
> is a function returning a list, so it's unlikely run can handle it, but
> you could make an equivalent macro in the one arg case that run could
> handle:
>
> (defmacro seconds->samples-1 (arg) `(round (* *srate* ,arg)))
>
> (This is not tested code...)
>