crucialfelix / API

simple Application Programming Interface framework for inter-application communication with SuperCollider
17 stars 3 forks source link

Supercollider.API <-> VVVV #3

Open zeos opened 7 years ago

zeos commented 7 years ago

Hi,

I am trying to connect VVVV (http://vvvv.org) language with Supercollider and I was wondering if it is possible to use the API quark to communicate between the SC server and the VVVV without the sclang/scide in between.

My startup.scd

// make sure you have the Quark
Quarks.install("API");

// enable the OSC in SuperCollider
API.mountDuplexOSC;

I am booting manually a server as a separate process with the VVVV, on port localhost:57110

I send /notify 1, to subscribe for any notifications

Whenever I try to send an OSC msg /API/call class.allClasses (for example), I get nothing. Please, advise.

P.S.Happy New Year ;)

best, Zeos

crucialfelix commented 7 years ago

The IDE isn't needed at all for the API quark. sclang is needed because API is supercollider code and it is sclang that runs the code.

You might find it a bit of work to set this up right. The javascript implementation in supercollider.js is the reference implementation - but then again its the only implementation.

I haven't been using API for quite a while. supercollider.js can run sclang code from inside javascript so I haven't needed it. Did you try running the reference examples first ?