[sc-users] Re: [sc-users-old] getting data from the sc server to a custom client [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [sc-users] Re: [sc-users-old] getting data from the sc server to a custom client To: SuperCollider users mailing list Subject: [sc-users] Re: [sc-users-old] getting data from the sc server to a custom client From: nescivi Date: Thu, 28 Aug 2008 09:51:16 -0400 In-reply-to: <48b574d1.0407560a.6617.1b8c@xxxxxxxxxxxxx> List-id: SuperCollider users mailing list References: <48b574d1.0407560a.6617.1b8c@xxxxxxxxxxxxx> Reply-to: sc-users@xxxxxxxxxxxxxxxx Sender: owner-sc-users@xxxxxxxxxxxxxxxx User-agent: KMail/1.9.9 Hiho,
On Wednesday 27 August 2008 11:37:20 Simon wrote:
> Hi
>
> I'm trying to control the sc server with ruby. So far I've managed to
> send messages from ruby to the sc server over udp (see code below).
> But how can I get messages from the server back to my client if I use
> a command like /status or /notify? Do I have to listen to an other
> port? And how can I set this port?
>
> I start the server with this command:
> ./scsynth -u 55666
>
> This is my ruby script:
>
> require 'socket'
> $port = 55666
> $command = "/status\0"
> UDPSocket.open.send($command, 0, 'localhost', $port)
Is Ruby using a set port from which it sends? scsynth will retrieve the port
to send messages back to from your message, so the port ruby is using to send
osc *from*, must be the same as it is listening to for incoming messages.
So this is really a ruby question from this point on.
>
> Btw. This is my first post to a mailing list ever, so please tell me,
> if I'm doing something wrong.
You used the old address of the list.
sincerely,
Marije
_______________________________________________
sc-users mailing list
info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/
Follow-Ups: Re: [sc-users] Re: [sc-users-old] getting data from the sc server to a custom client From: rfwatson Prev by Date: Re: [sc-users] getting data from the sc server to a custom client Next by Date: Re: [sc-users] Re: [sc-users-old] getting data from the sc server to a custom client Previous by thread: [sc-users] Strange MTC behavior Next by thread: Re: [sc-users] Re: [sc-users-old] getting data from the sc server to a custom client Index(es): Date Thread