Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interact with existing supercollider process? #41

Closed
leshy opened this issue Nov 9, 2018 · 3 comments
Closed

Interact with existing supercollider process? #41

leshy opened this issue Nov 9, 2018 · 3 comments

Comments

@leshy
Copy link

leshy commented Nov 9, 2018

Hey, is there an easy way to connect to an existing scsynth instance and then play with it from node in parallel with my supercollider IDE?

tnx!

@crucialfelix
Copy link
Owner

Should be possible, yes. Rather than create and boot, you want create and just connect. Look for those methods on Server in the docs.

@leshy
Copy link
Author

leshy commented Nov 10, 2018

Thanks for the quick reply, just to document this for others

ServerPlus = require('supercolliderjs/lib/server/ServerPlus.js').default
new ServerPlus().connect()

needed to increase number of users in scsynth (default seems to be 1) by adding

s.options.maxLogins = 8;

to the supercollider init script

@leshy leshy closed this as completed Nov 10, 2018
@crucialfelix
Copy link
Owner

Ah, I see that ServerPlus isn't exported at the top level.

It's technically still in ALPHA but I really want to do a new release soon.

https://github.com/crucialfelix/supercolliderjs/blob/develop/src/server/index.js

Glad to hear it works for you. Don't hesitate to ask me about anything or share any problems you are running into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants