| Newsgroups |
gmane.comp.audio.supercollider.user |
| Message-ID |
<[email protected]> |
Hi Sam, Hi Aleberto,
thanks a lot for your replies!
@Sam: Yes, that's exactly what I'm doing when using UDP and that works
perfectly. I was just wondering about the specifics of a NetAddr using
TCP/IP instead of UDP. There's a 'connect' and a 'disconnect' method
mentioned in the help file, saying that 'connect' takes a
'disconnectHandler' but not saying what the handler should look like
(I'm assuming it's a function but what should this function do?).
@adcxyz: Yes! I stumbled accross HyperDisco just yesterday and already
saw it's using TCP/IP. That's definitely a good starting point! However,
I think will have to study the Android-side a bit more in depth. I'm
using OscP5 which allows OSC over TCP/IP but honestly I haven't fully
understood how it works. There's an example at
http://www.sojamo.de/libraries/oscP5/examples/oscP5tcp/oscP5tcp.pde but
that's just a processing sketch sending OSC to itself. I'm using OscP5
in a native Android environment and I want to send OSC to and from
arbitrary TCP/IP enabled clients.
Anyway, I'm gonna dig deeper...
Thanks very much to both of you!
Stefan
Am 28.03.21 um 11:18 schrieb adcxyz-A2/[email protected]:
> Hi Stefan,
>
> In the class OSCRouterClient (HyperDisCo quark), bgola uses TCP
> communication with auto-reconnect, so this could be a useful example:
> https://github.com/aiberlin/HyperDisCo/blob/master/Classes/OSCRouterClient.sc
>
> best adc
>
>> On 28/03/2021, at 09:48 , <[email protected]> <[email protected]> wrote:
>>
>> For receiving OSC you want to use OSCFunc or OSCdef.
>>
>> For sending OSC, you create a NetAddr with the ip and port of the Android app, so for me on Lemur:
>>
>> n = NetAddr("127.0.0.1", 8000); //I am using MidiMux, so the ip is local
>>
>> then you do:
>>
>> n.sendMsg(‘/Fader/x’, 1.0.rand);
>>
>> to send a random value to the object that receives ‘/Fader/x’
>>
>> Or are you asking something else?
>>
>> Sam
>>
>>> On Mar 26, 2021, at 10:43 PM, [email protected] wrote:
>>>
>>> Dear all,
>>>
>>> I'm currently working on an Android based OSC controller for which I'm
>>> also implementing OSC over TCP/IP. Now I'd like to test this with
>>> SuperCollider (receiving and sending OSC).
>>>
>>> However documentation on how to use NetAddr with TCP/IP is a bit sparse.
>>> It only mentions 'connect', 'disconnect', 'tryConnectTCP' resp.
>>> 'tryDisconnectTCP' but doesn't provide much information on the
>>> underlying mechanism.
>>>
>>> Can anyone provide an example on how to implement a NetAddr using
>>> TCP/IP? I'm sorry if this is a bit of a dumb question.
>>>
>>> Thanks very much!
>>>
>>> Stefan
>>>
>>> _______________________________________________
>>> sc-users mailing list
>>>
>>> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
>>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/