muellmusik / Utopia

This is an attempt at a generic library of tools for making Network Music Apps in SuperCollider
43 stars 8 forks source link

Send only to one user when in the network #22

Closed KonVas closed 5 years ago

KonVas commented 5 years ago

Is there a method to send only to specific users when they are on the network, for example, how can I do something liek this: ~addrBook[\konstantinos].send('/el1', "Hello");

This doesn't seem to be working.

muellmusik commented 5 years ago

That should work I think.

On 3 Apr 2019, at 15:27, Konstantinos Vasilakos notifications@github.com wrote:

Is there a method to send only to specific users when they are on the network, for example, how can I do something liek this: ~addrBook[\konstantinos].send('/el1', "Hello");

This doesn't seem to be working.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

muellmusik commented 5 years ago

sendMsg

On 3 Apr 2019, at 15:27, Konstantinos Vasilakos notifications@github.com wrote:

Is there a method to send only to specific users when they are on the network, for example, how can I do something liek this: ~addrBook[\konstantinos].send('/el1', "Hello");

This doesn't seem to be working.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

adcxyz commented 5 years ago

I just tested this, and it works:

OSCdef(\test, { |msg| 
    msg.postcs;
}, "/test123");

~addrBook.send(~addrBook.me.name, "/test123", 4, 5, 6)
muellmusik commented 5 years ago

Yes that’s right. sendMsg is the method in Peer.

On 3 Apr 2019, at 15:43, Alberto de Campo notifications@github.com wrote:

I just tested this, and it works:

OSCdef(\test, { |msg| msg.postcs; }, "/test123");

~addrBook.send(~addrBook.me.name, "/test123", 4, 5, 6) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

KonVas commented 5 years ago

Thanks