-
Notifications
You must be signed in to change notification settings - Fork 42
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
NRT in lang.interpret #80
Comments
Anything you run in sclang like that should be the exact same as running it from the SC IDE.. Do you need to boot the scsynth server? (I don't think so) |
btw. // ...
} catch (e) {
console.log(e)
} finally {
await lang.quit();
} |
@crucialfelix no one scsynth server is running. Same code in SC IDE will write file correct. |
Ah, it is because the sclang code finishes and returns (though it has
started the NRT process).
So the returned result (void) is returned to supercollider.js / node and it
then kills the lang.
There should be some way for users to message back to js land via
the SuperColliderJS class:
https://github.com/crucialfelix/supercolliderjs/blob/develop/packages/lang/src/supercollider-js/SuperColliderJS.sc
Or better yet, include a built in two way messaging system. Each side can
add their own event listeners..
Then you could call SuperColliderJS.send("DONE")
The node script needs to wait somehow, otherwise it will exit right away
because it's work seems to be done.
…On Tue, Mar 31, 2020 at 3:39 PM Victor Kolb ***@***.***> wrote:
@crucialfelix <https://github.com/crucialfelix> no one scsynth server is
running. Same code in SC IDE will write file correct.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABVM4W2SJ5BN4WZXCZDIODRKHW7LANCNFSM4LXI5F6Q>
.
|
@crucialfelix thank for answer! I'll try to do something with this) |
@crucialfelix hello again! After few attempt I not finding in documentation info about messaging system :( Or you mean is "need to create it"? |
Exactly. Paraphrased: Wouldn't it be a great idea if there was an easy way
to call messages back and forth?
PRs or proposals accepted of course.
…On Sun, Apr 12, 2020 at 3:30 PM Victor Kolb ***@***.***> wrote:
@crucialfelix <https://github.com/crucialfelix> hello again! After few
attempt I not finding in documentation info about messaging system :( Or
you mean is "need to create it"?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABVM4X3BEXSO2VJLV4HVLDRMG65PANCNFSM4LXI5F6Q>
.
|
@VictorKolb Hey, did you had any success with this? I'm looking for a way to fully compose SC's score with JS |
@Catsvilles hey! I setting interval and every second looking at file size with |
Hello! Are there plans to implement NRT in lang.interpret? I try to do something like this:
But i get test.wav with 44 bytes length. :(
The text was updated successfully, but these errors were encountered: