So, now I can go with sclang /path/to/my/file/file.scd, and I can hear the audio.
I was wondering if it’s possible to somehow change the content for file.scd and let sclang get the changes and reproduce it? I tried by entering nano and changing it but it does not seems to work.
What your are trying to do is not possible as you try.
The simplest thing you can do is to plug sclang to a fifo and bind it’s input to a file you’re editing.
Not sure of the syntax, but in bash it’s definitely possible
PS: either way, you should definitely have your while loop in a routine and wait a bit each iteration. Otherwise your system will be fully occupied with checking the file thousands of times per second : )