[CM] CM to stdout ?
Rick Taube
taube@uiuc.edu
Fri, 23 Jan 2004 08:21:10 -0600
here is the info from a past changelog. Please let me know if it works
or not for what you are doing -- im going to make a maintenace release
in a few days and can encorporate any changes needed to get it to work.
ill also add a stream io case to cm's test suite.
o event output can now be sent to arbitrary streams in addition to
files.
[...]
To output events to an arbitrary stream, create the event stream
and use its :stream argument to pass it your Lisp stream destination.
For example, to send CSound events to stdout:
(define out (new sco-stream :stream *standard-output*))
(events (blur) out :header whatever)
Note that some Lisp implementations provide special functions
for specialized output to pipes and streams. For example in CLISP
you can used the 'make-pipe-output-stream' to pipe your output to
some app.