Giter Club home page Giter Club logo

Comments (4)

defaultxr avatar defaultxr commented on August 16, 2024

*s* is the global special variable for the server object. The docstring for *s* says:

Special symbol bound to the default scsynth server. If functions do not specify a target server, that message is sent to the *s* server.

Maybe that could be rephrased to be more clear though.

Additionally it looks like README.md only shows the following line in the "Usage" section:

(setf *s* (make-external-server "localhost" :port 48800))

So the readme could probably also be more clear about the purpose of the variable.

It also sounds to me like a good idea to add server as a &key argument for the synth function, for consistency with other functions. It doesn't seem likely that server would be used as a normal parameter in synthdefs, and we already use to and pos for special purposes, so there is precedent.

from cl-collider.

diasbruno avatar diasbruno commented on August 16, 2024

@defaultxr See #121. I've added a little bit of wording on the README about the s.

It also sounds to me like a good idea to add server as a &key argument for the synth function, for consistency with other functions. It doesn't seem likely that server would be used as a normal parameter in synthdefs, and we already use to and pos for special purposes, so there is precedent.

I don't know if there is a use case where it would be good to allow users to deal with server directly.
So, we have 2 options:

  • Make the server s internal for this project
  • Add the &key to every call that works with server and default it to s.

from cl-collider.

byulparan avatar byulparan commented on August 16, 2024

*s* is careless design. I just followed usage to s of sclang.
If we should be improve it, I vote second option.
because sometimes we need use it *s*. especially when you make and use multiple server.

from cl-collider.

diasbruno avatar diasbruno commented on August 16, 2024

Yeah...totally make sense (realise it later).
I'll see what I can do to help.
Thanks for the feedback.

from cl-collider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.