[LAU] Library for simple audio programming

Kjetil Matheussen k.s.matheussen at notam02.no
Thu Jan 17 15:24:35 UTC 2013


Bill Schottstaedt:
> (call-with-output-file "test.ascii" (lambda (p)
>  (let ((r (make-readin "filename.wav")))
>    (do () ((= (mus-location r) (mus-length r)))
>      (format p "~A~%" (r))))))

Can't get my head around 'do'. Prefer this:

(call-with-output-file "test.ascii" (lambda (p)
   (let ((r (make-readin "filename.wav")))
     (while (< (mus-location r) (mus-length r))
       (format p "~A~%" (r))))))




More information about the Linux-audio-user mailing list