[Csnd] OSC string not working (anymore?)
| Date | 2020-11-12 11:37 |
| From | Richard |
| Subject | [Csnd] OSC string not working (anymore?) |
Many years ago (2013) I asked about OSC reading string data not working. Victor sent a test script to try this out. I worked then. Now it does not work anymore. Tried this on Linux Mint and OS X. Csound version 6.15 |
| Date | 2020-11-12 22:05 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
Looks like a problem sending not receiving. Using OSCsend_lo works OSCsend_lo 0, "localhost", 10000, "/DROP/1", "s", "hello\n" ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 12 Nov 2020, at 11:37, Richard |
| Date | 2020-11-12 22:27 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
and OSCsend is now fixed on git ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 12 Nov 2020, at 22:05, Victor Lazzarini |
| Date | 2020-11-13 09:20 |
| From | Richard van Bemmelen |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
That does not work for me, I get: error: syntax error, unexpected INTEGER_TOKEN (token "0") from file OSCtest.csd (1) line 29: >>>OSCsend_Io 0 <<< Unexpected untyped word OSCsend_Io when expecting a variable Parsing failed due to invalid input! BTW, the original problem about reading OSC strings is not solved. I have a Python test program that sends string data over OSC using pythonosc. This works with a Python OSC server, but not with the csd. Op do 12 nov. 2020 om 23:05 schreef Victor Lazzarini <Victor.Lazzarini@mu.ie>: Looks like a problem sending not receiving. Using OSCsend_lo works |
| Date | 2020-11-13 19:53 |
| From | Pete Goodeve |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
| Attachments | None |
| Date | 2020-11-13 20:00 |
| From | Eduardo Moguillansky |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
I would advise against using "OSCsend_lo". I don't think that the osc
backend should have been exposed to the users at all. Using "OSCsend 1,
..." would have fixed the original request.
On 13.11.20 20:53, Pete Goodeve wrote:
> On Fri, Nov 13, 2020 at 10:20:37AM +0100, Richard van Bemmelen wrote:
>> That does not work for me, I get:
>> error: syntax error, unexpected INTEGER_TOKEN (token "0") from file
>> OSCtest.csd (1)
>> line 29:
>>>>> OSCsend_Io 0 <<<
>> Unexpected untyped word OSCsend_Io when expecting a variable
>> Parsing failed due to invalid input!
> Try the right command...! (:-)) It's "OSCsend_lo" (with an "el", not "I")
> Works for me.
>> BTW, the original problem about reading OSC strings is not solved. I have a
>> Python test program that sends string data over OSC using pythonosc.
>> This works with a Python OSC server, but not with the csd.
> I'd guess some format mismatch somewhere, but hard to tell from that.
>
> -- 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 |
| Date | 2020-11-14 00:02 |
| From | Pete Goodeve |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
| Attachments | None |
| Date | 2020-11-14 00:11 |
| From | Eduardo Moguillansky |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
<CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> gihandle OSCinit 10000 schedule 1,0,10 schedule 2,0,1 schedule 2,1,1 instr 1 S1 = "" nxtmsgs: kks OSClisten gihandle, "/DROP/1", "s", S1 if (kks == 0) goto exs printsk "%s\n", S1 kgoto nxtmsgs exs: endin instr 2 OSCsend 1, "localhost", 10000, "/DROP/1", "s", "hello\n" turnoff endin </CsInstruments> <CsScore> e 10 </CsScore> </CsoundSynthesizer> On 14.11.20 01:02, Pete Goodeve wrote:
On Fri, Nov 13, 2020 at 09:00:04PM +0100, Eduardo Moguillansky wrote:I would advise against using "OSCsend_lo". I don't think that the osc backend should have been exposed to the users at all. Using "OSCsend 1, ..." would have fixed the original request.Not for me, it doesn't... I get the error: "WARNING: OSCsend failed to send message with destination /DROP/1 to localhost:10000" when I do that. (Again OSCsend_lo works) -- 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 |
| Date | 2020-11-14 02:34 |
| From | Pete Goodeve |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
| Attachments | None |
| Date | 2020-11-14 03:07 |
| From | Pete Goodeve |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
| Attachments | None |
| Date | 2020-11-14 09:50 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
Change 0 to 1 and it will work then. I fixed this in git so if you can build it yourself, the original code will work. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 13 Nov 2020, at 09:20, Richard van Bemmelen |
| Date | 2020-11-14 09:54 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
It works here on MacOS. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 14 Nov 2020, at 03:07, Pete Goodeve |
| Date | 2020-11-14 12:21 |
| From | Richard van Bemmelen |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
I am sorry, but this still does not seem to work when sending a string via OSC from a Python program (using python-osc) It does work with a float. The original csd now does work (I compiled csound on Mint for now)... Richard Op za 14 nov. 2020 om 10:54 schreef Victor Lazzarini <Victor.Lazzarini@mu.ie>: It works here on MacOS. |
| Date | 2020-11-14 12:34 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
Did it use to work? If you can please file a ticket with all the info there. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 14 Nov 2020, at 12:21, Richard van Bemmelen |
| Date | 2020-11-14 12:41 |
| From | Richard van Bemmelen |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
It never worked for me with recent versions of csound. I'm preparing some test programs for this thread and also for the ticket (if I can find where that is...) Op za 14 nov. 2020 om 13:34 schreef Victor Lazzarini <Victor.Lazzarini@mu.ie>: Did it use to work? If you can please file a ticket with all the info there. |
| Date | 2020-11-14 13:40 |
| From | Richard van Bemmelen |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] OSC string not working (anymore?) |
| Attachments | window.py myOSCtest.csd |
Well, now it does seem to work. Here are the test files to try it out. For python you need to install PySimpleGUI and python-osc Start the csd first, then window.py Op za 14 nov. 2020 om 13:41 schreef Richard van Bemmelen <zappfinger@gmail.com>:
|