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

Booting server for project consisting of freesound samples #419

Open
kenokenobingo opened this issue Dec 3, 2018 · 7 comments
Open

Booting server for project consisting of freesound samples #419

kenokenobingo opened this issue Dec 3, 2018 · 7 comments

Comments

@kenokenobingo
Copy link

I’ve go a saved project with freesound samples in it. When I restart the nREPL server, Overtone’s access to freesound has to be authorized again, but I couldn’t find a way to paste the auth code to stdin. Is there a way to boot the server properly?

@hlolli
Copy link
Member

hlolli commented Dec 3, 2018

How are you booting the server, trough emacs, vim, terminal...? That answers the question of where you find the stdin. But Overtone cahces the samples so you should only need to autherize for samples that which you don't have yet locally. There's no way to avoid this, this is the security mechanism of freesound. In case of performance, then make sure you've loaded all the samples you need from freesound before starting!

@kenokenobingo
Copy link
Author

kenokenobingo commented Dec 3, 2018

Thanks for your reply, @hlolli! I’ve tried two ways:

  • Booting the server through the terminal via lein repl. I couldn’t figure out how to paste the code while starting the server.
  • Booting the server through Emacs via cider-jack-in. The stdin buffer didn’t appear.

@hlolli
Copy link
Member

hlolli commented Dec 3, 2018

No you don't do it at the time when the server is starting, when you evaluate a sample with freesound function, a browser opens up (and goes to freesound) and then you are prompted. In emacs you see the stdin in the minibuffer, in terminal, the repl input becomes stdin.

@kenokenobingo
Copy link
Author

The problem is: When the samples are not cached, the website pops up while booting the server. Therefore there’s no input for the auth code. After a while the server terminates because I couldn’t be set up properly.

@hlolli
Copy link
Member

hlolli commented Dec 3, 2018

Ok, that should be fixed, but the problem that you're having seems to be that you are loading a namespace which calls freesound initially. Maybe first require overtone.live or overtone.core then load the namespace, then you're sure that overtone is loaded before it calls freesound. By default, overtone should not call any freesound function.

@mxjxn
Copy link

mxjxn commented Dec 10, 2018

@kenokenobingo did you solve this issue?

@kenokenobingo
Copy link
Author

@mxjxn, I used @hlolli’s solution, but didn’t close the issue because I thought there will be a fix.

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

3 participants