A question on live score events
| Date | 2017-03-04 12:50 |
| From | Gleb |
| Subject | A question on live score events |
Dear Csounders,
I am trying to send some score lines to Csound in Linux i.e.
gleb@UbuntuPC:~$ echo -e "i1 0 5\r" > /proc/3676/fd/0
so 3676 is PID of my csound running with -L stdin -odac
The lines are appearing and it seems like even return button was pressed but
there is no rtevent generated.
Of course, manually when I input that line everything works nice.
Thanks!
-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television
Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-A-question-on-live-score-events-tp5754906.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-03-04 13:11 |
| From | Victor Lazzarini |
| Subject | Re: A question on live score events |
did you try \n instead of \r? ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 12:50, Gleb |
| Date | 2017-03-04 13:39 |
| From | Gleb |
| Subject | Re: A question on live score events |
Hello, Victor!
Yes, I did. Nor \n either \r worked.
-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television
Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-A-question-on-live-score-events-tp5754906p5754908.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-03-04 13:46 |
| From | John ff |
| Subject | Re: A question on live score events |
Was your csd listening for stdin?
Sent from TypeApp
On 4 Mar 2017, at 13:40, Gleb <gleb.rogozinsky@GMAIL.COM> wrote: Hello, Victor! |
| Date | 2017-03-04 14:02 |
| From | Gleb |
| Subject | Re: A question on live score events |
John, do you mean was I running Csound with -L stdin ?
In that case, yes, it was.
-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television
Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-A-question-on-live-score-events-tp5754906p5754910.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-03-06 10:45 |
| From | Gleb |
| Subject | Re: A question on live score events |
Just in case somebody will be looking for the same, here is the solution
1. create a named pipe
mkfifo csound.fifo
2. keep the csound.fifo open
cat > csound.fifo &
3. run csound with pipe, no need -L stdin
cat csound.fifo | csound test.csd -odac
4. use another term window to send live events
echo "i1 0 5" > csound.fifo
I guess it could be add to some manual regarding stdin and pipes
-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television
Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-A-question-on-live-score-events-tp5754906p5754939.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-03-06 12:34 |
| From | Victor Lazzarini |
| Subject | Re: A question on live score events |
I didn’t know you you didn’t need -L to get data off a pipe like that. In the past I have piped commands through -L. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 Mar 2017, at 10:45, Gleb |
| Date | 2017-03-06 12:55 |
| From | Victor Lazzarini |
| Subject | Re: A question on live score events |
I just tested it here, and to make it work, I needed to add -L stdin. (OSX) ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 6 Mar 2017, at 12:34, Victor Lazzarini |
| Date | 2017-03-06 18:28 |
| From | Gleb |
| Subject | Re: A question on live score events |
Yes, you are right. I double checked it on another machine and you need to
run it with -L stdin (Ubuntu)
-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television
Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/Csnd-A-question-on-live-score-events-tp5754906p5754950.html
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-03-06 18:41 |
| From | Justin Smith |
| Subject | Re: A question on live score events |
iirc if you don't use -Lstdin the default is for stdin to be available for audio input (which is handy for command line piping with other audio software) On Mon, Mar 6, 2017 at 10:28 AM Gleb <gleb.rogozinsky@gmail.com> wrote: Yes, you are right. I double checked it on another machine and you need to |