Csound Csound-dev Csound-tekno Search About

[Csnd] Manual is wrong on OSC host selection

Date2019-05-20 04:33
FromPete Goodeve
Subject[Csnd] Manual is wrong on OSC host selection
AttachmentsNone  

Date2019-05-20 09:47
Fromjohn
SubjectRe: [Csnd] Manual is wrong on OSC host selection
Sounds like a side effect of the change from liblo to drect code.

Victor?

==J

On Sun, 19 May 2019, Pete Goodeve wrote:

> I seem to be a magnet for glitches ATM...!
>
> I went to try the OSC example files (OSCmidircv.csd & OSCmidisend.csd)
> under Haiku, and it didn't work... Got "WARNING: OSCsend failed to send
> message ..." from the send side.  Over in Linux, they worked fine.
>
> To bypass all the degugging I  went through, I eventually
> found that the "localhost" setting in OSCmidisend.csd is not valid!
> The code uses the 'inet_aton' call, which just translates a *numeric*
> IP into a binary word.  It can't handle text hostnames at all!
> When I replace 'localhost' with a numeric IP, it works fine in Haiku too.
>
> It seems that it just happens that Linux selects a 'locahost' connection
> for *any* supplied text string, so it accidentally works there.  If you try
> to connect to any other machine by its name, it fails.
>
> The problem is that the manual page explicitly uses a remote hostname,
> which can't possibly work!  I'm not sure what it takes to do a DNS lookup,
> but there's nothing like that in the current code.
>
> I  think a major manual correction is needed.
>
> 	-- 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

Date2019-05-20 22:53
FromPete Goodeve
SubjectRe: [Csnd] Manual is wrong on OSC host selection
AttachmentsNone  

Date2019-05-21 02:26
FromPete Goodeve
SubjectRe: [Csnd] Manual is wrong on OSC host selection
AttachmentsNone  

Date2019-05-21 07:43
FromVictor Lazzarini
SubjectRe: [Csnd] Manual is wrong on OSC host selection
The rationale is that liblo does not perform well in sending many messages. This was discovered a couple of years ago. Apart from this minor issue of name lookup, the
change has worked very well and we are not
reverting it.

The solution to this issue is to fix the code to make the DNS translation if needed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 21 May 2019, at 02:26, Pete Goodeve  wrote:
> 
>> On Mon, May 20, 2019 at 02:53:38PM -0700, Pete Goodeve wrote:
>>> On Mon, May 20, 2019 at 09:47:04AM +0100, john wrote:
>>> Sounds like a side effect of the change from liblo to drect code.
>>> 
>> Looks like that's it!  I wasn't able to try Csound5 before, because
>> I didn't seem to have OSC in Haiku, but it turned out it just wasn't
>> finding liblo and not telling me. I got it set up right, and yes, DNS
>> hostnames work properly there.
>> 
>> So it can't be too hard to restore that feature.  I'll take a look.
>> 
> Hmm, maybe a bit harder than I thought.  In the old version liblo
> did all the work.  Must still be possible, but I'm not familiar with
> networking calls to know what's needed.
> 
> But what was the rationale for the switch from plugin to main
> library?  A lot of the functions are still in the plugin, and after
> exploring I see that the old 'OSCsend' is now 'OSCsend_lo' -- and
> works perfectly well!  Maybe rather better as it *does* accept
> hostnames!  Just not documented, except a line in the 6.09
> Release Notes.
> 
> I also see that the 'socksend' page explicitly states that the
> address for that must be dotted numeric, so the requirement
> was known, but unintentionally propagated, I guess.
> 
> I guess OSCbundle and OSCraw are new in the main library,
> but why not move OSCsend back and put the others there too?
> Everything would be consistent, then. What would be the
> disadvantages?
> 
>    -- 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

Date2019-05-21 07:59
FromTarmo Johannes
SubjectRe: [Csnd] Manual is wrong on OSC host selection
Hi,

Actually I have experienced the opposite - sending many messages with OSCSend in one cycle fails but with OSCSend_lo works. I will test to be sure and start another thread with an example.

Tarmo

T, 21. mai 2019 09:43 Victor Lazzarini <Victor.Lazzarini@mu.ie> kirjutas:
The rationale is that liblo does not perform well in sending many messages. This was discovered a couple of years ago. Apart from this minor issue of name lookup, the
change has worked very well and we are not
reverting it.

The solution to this issue is to fix the code to make the DNS translation if needed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 21 May 2019, at 02:26, Pete Goodeve <pete.goodeve@computer.org> wrote:
>
>> On Mon, May 20, 2019 at 02:53:38PM -0700, Pete Goodeve wrote:
>>> On Mon, May 20, 2019 at 09:47:04AM +0100, john wrote:
>>> Sounds like a side effect of the change from liblo to drect code.
>>>
>> Looks like that's it!  I wasn't able to try Csound5 before, because
>> I didn't seem to have OSC in Haiku, but it turned out it just wasn't
>> finding liblo and not telling me. I got it set up right, and yes, DNS
>> hostnames work properly there.
>>
>> So it can't be too hard to restore that feature.  I'll take a look.
>>
> Hmm, maybe a bit harder than I thought.  In the old version liblo
> did all the work.  Must still be possible, but I'm not familiar with
> networking calls to know what's needed.
>
> But what was the rationale for the switch from plugin to main
> library?  A lot of the functions are still in the plugin, and after
> exploring I see that the old 'OSCsend' is now 'OSCsend_lo' -- and
> works perfectly well!  Maybe rather better as it *does* accept
> hostnames!  Just not documented, except a line in the 6.09
> Release Notes.
>
> I also see that the 'socksend' page explicitly states that the
> address for that must be dotted numeric, so the requirement
> was known, but unintentionally propagated, I guess.
>
> I guess OSCbundle and OSCraw are new in the main library,
> but why not move OSCsend back and put the others there too?
> Everything would be consistent, then. What would be the
> disadvantages?
>
>    -- 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

Date2019-05-21 08:08
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Manual is wrong on OSC host selection
Just to chime in,
the problem with the old OSCsend was that it would tax the CPU significantly when sending messages at a high rate. The sending itself is not a very CPU intensive task, but that the audio thread was blocked from normal processing while the message was dispatched. The performance gained with the new version is indispensable IMHO.
Oeyvind

tir. 21. mai 2019 kl. 08:59 skrev Tarmo Johannes <trmjhnns@gmail.com>:
Hi,

Actually I have experienced the opposite - sending many messages with OSCSend in one cycle fails but with OSCSend_lo works. I will test to be sure and start another thread with an example.

Tarmo

T, 21. mai 2019 09:43 Victor Lazzarini <Victor.Lazzarini@mu.ie> kirjutas:
The rationale is that liblo does not perform well in sending many messages. This was discovered a couple of years ago. Apart from this minor issue of name lookup, the
change has worked very well and we are not
reverting it.

The solution to this issue is to fix the code to make the DNS translation if needed.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 21 May 2019, at 02:26, Pete Goodeve <pete.goodeve@computer.org> wrote:
>
>> On Mon, May 20, 2019 at 02:53:38PM -0700, Pete Goodeve wrote:
>>> On Mon, May 20, 2019 at 09:47:04AM +0100, john wrote:
>>> Sounds like a side effect of the change from liblo to drect code.
>>>
>> Looks like that's it!  I wasn't able to try Csound5 before, because
>> I didn't seem to have OSC in Haiku, but it turned out it just wasn't
>> finding liblo and not telling me. I got it set up right, and yes, DNS
>> hostnames work properly there.
>>
>> So it can't be too hard to restore that feature.  I'll take a look.
>>
> Hmm, maybe a bit harder than I thought.  In the old version liblo
> did all the work.  Must still be possible, but I'm not familiar with
> networking calls to know what's needed.
>
> But what was the rationale for the switch from plugin to main
> library?  A lot of the functions are still in the plugin, and after
> exploring I see that the old 'OSCsend' is now 'OSCsend_lo' -- and
> works perfectly well!  Maybe rather better as it *does* accept
> hostnames!  Just not documented, except a line in the 6.09
> Release Notes.
>
> I also see that the 'socksend' page explicitly states that the
> address for that must be dotted numeric, so the requirement
> was known, but unintentionally propagated, I guess.
>
> I guess OSCbundle and OSCraw are new in the main library,
> but why not move OSCsend back and put the others there too?
> Everything would be consistent, then. What would be the
> disadvantages?
>
>    -- 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

Date2019-05-21 09:00
FromVictor Lazzarini
SubjectRe: [Csnd] Manual is wrong on OSC host selection
Oeyvind is a heavy user of OSC in Csound, so we were guided by his experiences. Still, OSCSend_lo is still there for those
who want to use it.
========================
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 21 May 2019, at 08:08, Oeyvind Brandtsegg  wrote:
> 
> Just to chime in,
> the problem with the old OSCsend was that it would tax the CPU significantly when sending messages at a high rate. The sending itself is not a very CPU intensive task, but that the audio thread was blocked from normal processing while the message was dispatched. The performance gained with the new version is indispensable IMHO.
> Oeyvind
> 
> tir. 21. mai 2019 kl. 08:59 skrev Tarmo Johannes :
> Hi,
> 
> Actually I have experienced the opposite - sending many messages with OSCSend in one cycle fails but with OSCSend_lo works. I will test to be sure and start another thread with an example.
> 
> Tarmo
> 
> T, 21. mai 2019 09:43 Victor Lazzarini  kirjutas:
> The rationale is that liblo does not perform well in sending many messages. This was discovered a couple of years ago. Apart from this minor issue of name lookup, the
> change has worked very well and we are not
> reverting it.
> 
> The solution to this issue is to fix the code to make the DNS translation if needed.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> > On 21 May 2019, at 02:26, Pete Goodeve  wrote:
> > 
> >> On Mon, May 20, 2019 at 02:53:38PM -0700, Pete Goodeve wrote:
> >>> On Mon, May 20, 2019 at 09:47:04AM +0100, john wrote:
> >>> Sounds like a side effect of the change from liblo to drect code.
> >>> 
> >> Looks like that's it!  I wasn't able to try Csound5 before, because
> >> I didn't seem to have OSC in Haiku, but it turned out it just wasn't
> >> finding liblo and not telling me. I got it set up right, and yes, DNS
> >> hostnames work properly there.
> >> 
> >> So it can't be too hard to restore that feature.  I'll take a look.
> >> 
> > Hmm, maybe a bit harder than I thought.  In the old version liblo
> > did all the work.  Must still be possible, but I'm not familiar with
> > networking calls to know what's needed.
> > 
> > But what was the rationale for the switch from plugin to main
> > library?  A lot of the functions are still in the plugin, and after
> > exploring I see that the old 'OSCsend' is now 'OSCsend_lo' -- and
> > works perfectly well!  Maybe rather better as it *does* accept
> > hostnames!  Just not documented, except a line in the 6.09
> > Release Notes.
> > 
> > I also see that the 'socksend' page explicitly states that the
> > address for that must be dotted numeric, so the requirement
> > was known, but unintentionally propagated, I guess.
> > 
> > I guess OSCbundle and OSCraw are new in the main library,
> > but why not move OSCsend back and put the others there too?
> > Everything would be consistent, then. What would be the
> > disadvantages?
> > 
> >    -- 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
> 
> 
> -- 
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://www.partikkelaudio.com/
> http://crossadaptive.hf.ntnu.no
> http://gdsp.hf.ntnu.no/
> http://soundcloud.com/brandtsegg
> http://flyndresang.no/
> http://soundcloud.com/t-emp
>  
> 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

Date2019-05-22 03:34
Frompete.goodeve@COMPUTER.ORG
SubjectRe: [Csnd] Manual is wrong on OSC host selection
AttachmentsNone