I wasn't that familiar with UDP, so I assumed that packet size was limited to something fairly small, but I've now done a little research and see that the maximum is ~65k. ...As long as fragmentation is not a concern. With communication within localhost, it looks as if there's no fragmentation, so you're right -- 65k is not likely to be restrictive. Not so sure about sending across the net. I gather from StackOverflow that some routers might just reject a long message without trying to fragment it. Don't know. Maybe some bracketing convention would be nice in any case. Would make it easier to use things like netcat to send a score as a group but line-by-line from the console. Thanks, -- Pete -- On Sat, Sep 21, 2019 at 09:32:56AM +0000, Victor Lazzarini wrote: > It might be possible to add a multi-packet score command like the orchestra with { }, I can look into it. > Never thought of scores as being that big. A work-around is to use readscore or linevent and send it > as a multi-message orchestra. > ======================== > Prof. Victor Lazzarini > Maynooth University > Ireland > > > On 20 Sep 2019, at 22:53, Pete Goodeve wrote: > > > > Ahh. The problem was, I've been using netcat to send the strings. > > If I'm typing the lines in from the console, nc sends each as a > > separate UDP packet. > > > > If instead I send a longer score string -- prepended by '$' -- via > > a pipe, it all gets played. e.g.: > > > > cat testorc| nc -u localhost 10000 > > > > I guess it's still limited by the maximum size of a packet. > > > > -- Pete -- > > > > > > On Fri, Sep 20, 2019 at 01:35:49PM -0700, Pete Goodeve wrote: > >> On Fri, Sep 20, 2019 at 01:19:13PM +0300, Tarmo Johannes wrote: > >>> How do you form the string? I believe if it is somethin like "i 1 0 3 \n i1 > >>> 4 5" it should work. Or does not it? Cannot check right now... > >> > >> I'm afraid that sort of construction doesn't work. (Tried all that sort > >> of thing last night.) I don't know if you intended the quotes to be > >> part of the entry, but they'll be flagged as 'unexpected STRING_TOKEN > >> (token """)'. Including a '\n', (with no quotes) is also flagged as illegal. > >> > >> Thanks for the suggestion, anyway. > >> > >> -- Pete -- > >> > >>> > >>> tarmo > >>> > >>> R, 20. september 2019 09:28 Pete Goodeve > >>> kirjutas: > >>> > >>>> Hi, > >>>> I've been playing with the UDP Server (having got it working in Haiku...) > >>>> but I can't figure out the "$" command. > >>>> > >>>> The manual says: > >>>> > >>>> " $[score] > >>>> Sends in a score [score], to which most preprocessing (except for tempo) > >>>> can be applied. Use this option for larger blocks of score events." > >>>> > >>>> which would seem to mean that you can send a score's worth of events, > >>>> but I can't find a way of sending more than one line. It will play one > >>>> line, > >>>> but succeeding ones cause a parse error. There doesn't seem to be > >>>> any equivalent of the "{...}" convention for Orchestra. > >>>> > >>>> What am I missing? > >>>> > >>>> Thanks, > >>>> -- Pete -- > >>>> > >>>> 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 > >>>> > >>> > >>> 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 > >> > >> 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 > > > > 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 > > 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 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