crucialfelix / supercolliderjs

The JavaScript client library for SuperCollider
https://crucialfelix.github.io/supercolliderjs/
MIT License
472 stars 41 forks source link

Simple Sine from sclang #113

Open simdax opened 2 years ago

simdax commented 2 years ago

Hello !

With this simple example, I was waiting hearing a beep, which is not the case. I need to wait before launching the lang ?

const sc = require("supercolliderjs");

sc.server.boot().then((server) => {
  sc.lang.boot().then(async function (lang) {
    await lang.interpret("play {SinOsc.ar}");
    await lang.quit();
  });
});
crucialfelix commented 2 years ago

This should work. Check if the processes really did start (use htop or top)

I think you should see some console output. Check the documentation to pass debugging options on booting server and lang.

Check if the server connected to the main audio interface or one you can hear.

apiel commented 1 year ago

I have the same issue, did you solve the problem?