[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Re: [sc-users] Using Supercollider from C++



Here's a related project that seems to have last been touched in 2014, might still be able to give some pointers in the right direction?

https://github.com/ChadMcKinney/libscpp

On Fri, Jan 4, 2019 at 10:18 AM <asm13243546@xxxxxxxxx> wrote:
@nathan Pete would indeed then though be able to send server-side messages to the embedded libscsynth much as described in the server-side programming section of SuperCollider Book MIT press, no?

Or am I being optimistic? 

Alfred  

On Thu, Jan 3, 2019 at 7:21 PM <nathan@xxxxxxxxxxxx> wrote:
On Thursday, January 03, 2019 21:31 CET, pete.soundtechnician@xxxxxxxxx wrote:
 >  Hi Supercollider users, I'm a long time Csounder just sinking my teeth
> into Supercollider. For my first question, I was wondering, is there a C++
> API for Supercollider so I can use it in an application similar to Csound
> has? I have looked through the docs and googled it before coming here, but
> the google hits returned are all about creating Supercollider plugins in
> C++.

hi pete,

there's something called libscsynth which can be compiled with the LIBSCSYNTH cmake flag set to ON. however this only embeds the server, not the client. also the scsynth C++ API is pretty low-level stuff, undocumented and not originally designed for public use. embedding supercollider in other applications as a library is unfortunately pretty tough to do especially with SC's two-process architecture.

the easiest way is to just have your application spawn sclang as a subprocess and talk to it over OSC or something similar.


nathan


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/