Csound Csound-dev Csound-tekno Search About

[Cs-dev] new server & daemon modes

Date2013-11-12 17:25
FromVictor Lazzarini
Subject[Cs-dev] new server & daemon modes
Following on from some older ideas and prompted by Tarmo’s nice server program, I have added an
experimental daemon mode and an UDP server.

Now you can run Csound with no orchestra whatsoever by using --daemon, which can be used in
frontends that have a REPL (like CsoundQT). In addition, you can start a UDP server that will listen
for UDP messages containing orchestra code, with the --port=N (where N is the port to send code to),
and this implies daemon mode.

To set up a server you can do

$./csound -odac --port=44100  

and then you can send your code to Csound via UDP, like this

$ cat mycode.orc | nc -u 127.0.0.1  44100

and of course you can send things over the network too.

This is GIT now and has been tested a little on OSX.

Victor
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-11-12 17:59
FromSteven Yi
SubjectRe: [Cs-dev] new server & daemon modes
AttachmentsNone  None  
Hi Victor,

I think Top/server.c wasn't committed.  Could you check?

steven


On Tue, Nov 12, 2013 at 12:25 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Following on from some older ideas and prompted by Tarmo’s nice server program, I have added an
experimental daemon mode and an UDP server.

Now you can run Csound with no orchestra whatsoever by using --daemon, which can be used in
frontends that have a REPL (like CsoundQT). In addition, you can start a UDP server that will listen
for UDP messages containing orchestra code, with the --port=N (where N is the port to send code to),
and this implies daemon mode.

To set up a server you can do

$./csound -odac --port=44100

and then you can send your code to Csound via UDP, like this

$ cat mycode.orc | nc -u 127.0.0.1  44100

and of course you can send things over the network too.

This is GIT now and has been tested a little on OSX.

Victor
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-11-12 19:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] new server & daemon modes
OOps… done it. In my haste to leave the office, I forgot to do it.

Victor
On 12 Nov 2013, at 17:59, Steven Yi  wrote:

> Hi Victor,
> 
> I think Top/server.c wasn't committed.  Could you check?
> 
> steven
> 
> 
> On Tue, Nov 12, 2013 at 12:25 PM, Victor Lazzarini  wrote:
> Following on from some older ideas and prompted by Tarmo’s nice server program, I have added an
> experimental daemon mode and an UDP server.
> 
> Now you can run Csound with no orchestra whatsoever by using --daemon, which can be used in
> frontends that have a REPL (like CsoundQT). In addition, you can start a UDP server that will listen
> for UDP messages containing orchestra code, with the --port=N (where N is the port to send code to),
> and this implies daemon mode.
> 
> To set up a server you can do
> 
> $./csound -odac --port=44100
> 
> and then you can send your code to Csound via UDP, like this
> 
> $ cat mycode.orc | nc -u 127.0.0.1  44100
> 
> and of course you can send things over the network too.
> 
> This is GIT now and has been tested a little on OSX.
> 
> Victor
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most 
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net