[LAU] Library for simple audio programming

Kjetil Matheussen k.s.matheussen at notam02.no
Wed Jan 16 11:28:06 UTC 2013


James Harkins:
> FWIW, this task is incredibly easy in SuperCollider:

Perhaps it's easier than writing C, but there
should be many alternatives that are easier than your example.

For instance SND:

(define reader (make-readin "filename.wav"))
(call-with-output-file "outfile.txt"
   (lambda (out)
     (let loop ((i 0))
       (if (< i (mus-length reader))
           (begin
             (format out "~A\n" (readin reader))
             (loop (1+ i)))))))


(There are probably systems where you can do this far simpler though.)





More information about the Linux-audio-user mailing list