Csound Csound-dev Csound-tekno Search About

[Csnd] OSCsendA

Date2017-12-08 10:04
FromMenno Knevel
Subject[Csnd] OSCsendA
trying to understand and using OSC, i am missing a manual page for OSCsendA.
Can information on the opcode be created please?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-12-08 10:19
FromOeyvind Brandtsegg
SubjectRe: [Csnd] OSCsendA
IIRC, 
OSCsendA was created as an intermediary version while we looked into optimizing the cost and latency of sending OSC messages. It sends asynchronously, meaning it creates a separate thread to handle the communication with the network port.
But Victor will know more details.
best
Oeyvind

2017-12-08 11:04 GMT+01:00 Menno Knevel <magknevel@gmail.com>:
trying to understand and using OSC, i am missing a manual page for OSCsendA.
Can information on the opcode be created please?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-12-08 11:50
FromMenno Knevel
SubjectRe: [Csnd] OSCsendA
thanks for the info, Oeyvind. I assume it has the same arguments?

We are controlling Ardour on a second computer, using OSC - works great.

For completeness sake i' d like to mention that Csound wants to have these
arguments:

OSCsend kwhen, ihost, iport, idestination, itype [, xdata1, xdata2, ...]

but i found out that some OSC commands, at least with Ardour, it expects for
example:

oscsend osc.udp://192.168.1.131:3819 /transport_stop

which would translate in Csound speak to:

OSCsend     1, "192.168.1.131", 3819, "/transport_stop"

Here i get an error, as Csound wants something like:

OSCsend     1, "192.168.1.131", 3819, "/transport_stop", "i", 1

Ardour does not mind the extra arguments type (integer) and the number and
it works fine anyway...





--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-12-08 12:21
FromOeyvind Brandtsegg
SubjectRe: [Csnd] OSCsendA
Yes, the syntax is the same as OSCsend.

I think the "fuzzyness" in your example of "/transport_stop" occurs from the fact that Ardour in this case responds to the address and not to the value. This seems common enough for e.g. transport controls via OSC in other DAWs too. 
Perhaps the OSCsend opcode should actually have the type and value as optional arguments? That would free users of potential confusion in these cases, and also avoid potential processing irregularities on the receiving end due to the extra data (type and value) that you currently transmit just to comply with the opcode syntax.

2017-12-08 12:50 GMT+01:00 Menno Knevel <magknevel@gmail.com>:
thanks for the info, Oeyvind. I assume it has the same arguments?

We are controlling Ardour on a second computer, using OSC - works great.

For completeness sake i' d like to mention that Csound wants to have these
arguments:

OSCsend kwhen, ihost, iport, idestination, itype [, xdata1, xdata2, ...]

but i found out that some OSC commands, at least with Ardour, it expects for
example:

oscsend osc.udp://192.168.1.131:3819 /transport_stop

which would translate in Csound speak to:

OSCsend     1, "192.168.1.131", 3819, "/transport_stop"

Here i get an error, as Csound wants something like:

OSCsend     1, "192.168.1.131", 3819, "/transport_stop", "i", 1

Ardour does not mind the extra arguments type (integer) and the number and
it works fine anyway...





--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-12-08 12:31
FromMenno Knevel
SubjectRe: [Csnd] OSCsendA
Yes, i would like to be less confused :)
Certainly when there are more DAWs that have the same behavior when it comes
to not-needing-type-and-value arguments, these arguments can be made
optional in OSCsend(A)?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2017-12-11 12:43
FromOeyvind Brandtsegg
SubjectRe: [Csnd] OSCsendA
I agree that this is a good proposal. Could you make an issue for it in github?

2017-12-08 13:31 GMT+01:00 Menno Knevel <magknevel@gmail.com>:
Yes, i would like to be less confused :)
Certainly when there are more DAWs that have the same behavior when it comes
to not-needing-type-and-value arguments, these arguments can be made
optional in OSCsend(A)?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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