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

Getting Started #23

Closed
tatecarson opened this issue Aug 3, 2016 · 4 comments
Closed

Getting Started #23

tatecarson opened this issue Aug 3, 2016 · 4 comments

Comments

@tatecarson
Copy link

tatecarson commented Aug 3, 2016

Hello,

I'm just getting into supercollider js. I installed the packages fine and got to the point where you say "In your code require the package:" and then some code. Where does that code go and how exactly do you run it? I'm assuming it doesn't have to be in the same folder as the modules since they were installed locally. I'm pretty new to node, a small bit of guidance would be helpful.

...edit: figured the above bit out pretty quickly but i'm still curious about the other question.

I'm eventually interested in possibly trying to use this with electron to make a standalone. Would this be possible?

thanks!

@tatecarson
Copy link
Author

tatecarson commented Aug 3, 2016

Also trying to run the api example and getting this error:
tate-2:examples tatecarson$ node call-api-from-node.js Unhandled Rejection: [TypeError: SCAPI is not a function] TypeError: SCAPI is not a function at /Users/tatecarson/node_modules/supercolliderjs/examples/call-api-from-node.js:27:15 at tryCatcher (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/promise.js:504:31) at Promise._settlePromise (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/promise.js:561:18) at Promise._settlePromiseCtx (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/promise.js:598:10) at Async._drainQueue (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/async.js:143:12) at Async._drainQueues (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/async.js:148:10) at Immediate.Async.drainQueues [as _onImmediate] (/Users/tatecarson/node_modules/supercolliderjs/node_modules/bluebird/js/release/async.js:17:14) at processImmediate [as _immediateCallback] (timers.js:383:17)

this is after running API.mountDuplexOSC in supercollider

@crucialfelix
Copy link
Owner

See https://github.com/experimentalDataAesthetics/play-splom for a working electron example app

@crucialfelix
Copy link
Owner

I am going to rework all the examples and greatly expand them, move them into a separate repo.

So you understood that you write a my-thing.js and run it with node my-thing.js

@crucialfelix
Copy link
Owner

crucialfelix commented Jan 17, 2017

Closing this now that I have some documentation and guides up.

They aren't finished or perfect though. I'm trying to find the time for another big writing session.

https://crucialfelix.github.io/supercolliderjs/
https://crucialfelix.gitbooks.io/supercollider-js-guide/content/
https://crucialfelix.github.io/supercolliderjs/api/
https://github.com/crucialfelix/supercolliderjs-examples

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