Using CSound5 under Linux, I am able to send real-time score input to stdin and get sound as the score events are read. Using the same technique under Windows, the sound is not produced until I close the input stream. The Windows command line looks like this:
my_program | csound -g -L stdin -h -o devaudio orchestra.orc dummy.sco
Dummy.sco looks like this: "f 0 120000"
Any hint here how to get the sound to be output as the score events are read in?
(Cross-posted from "tips and tricks," as I got no traction there)



I suppose suggesting you
I suppose suggesting you return to Linux is no use...? (:-/)
As I've mentioned elsewhere I'm not a Microsoft user, but I seem to remember a Windows pipe used to be just an anonymous temporary file (that wouldn't be read until it was all written and closed). Whether or not this is still the case, a command line pipe seems to behave that way, and there doesn't appear to be any way to change that.
Looking at the MSDN pages, I guess there are ways at the code level to make a pipe "asynchronous", so maybe Csound could be adapted, but I don't know...
Did return to Linux
I did return to Linux. :)
But now periods are not recognized ... Some research first, then I'm posting a new topic for this one.
Lewis Berman
University of Durham, England
and Baltimore, Maryland US