[chuck-users] Fifo with Chuck?

Forrest Curo treegestalt at gmail.com
Mon Dec 28 20:54:44 EST 2020


This is working... seems a little clumsy.
FileIO file;
int val, hal;
file.open("feefo", FileIO.READ);
while(true){
while(file => val){
file => hal;
<<< "next vals:", val, hal >>>;
}
1 :: second => now;
file.open("feefo", FileIO.READ);
}

On Mon, Dec 28, 2020 at 4:55 PM Forrest Curo <treegestalt at gmail.com> wrote:

> This is a built-in feature in csound on linux, that you can send score
> lines to a fifo that csound -L will pick up and execute.
>
> With chuck, I can open a fifo as a file, read it, send it a line of
> numbers -- but as soon as chuck has read the last number, it reads the eof
> and stops working.
>
> Is there a way to halt just short of the eof? I suppose I could add a
> dummy value at the end... but is there something less clumsy available?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20201228/fc765b1b/attachment.html>


More information about the chuck-users mailing list