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

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



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/