Comments (4)
*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.
@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.
*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.
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)
- exception in GraphDef_Recv: UGen 'ExpLin' not installed. HOT 2
- Feature Request: make osc-device local port customizable HOT 2
- Export `unipolar` and `bipolar` HOT 1
- `buffer-get-to-list` error: Invalid range requested HOT 2
- * exception in GraphDef_Load: UGen 'Control' not installed. HOT 5
- LispWorks error when evaluating (ql:quickload "cl-collider") HOT 3
- Example on how to get left and right channel from multiout-ugen HOT 2
- Is cl-collider really only compatible with only supercollider 3.8 or 3.9? HOT 3
- Some systems failed to build for Quicklisp dist HOT 3
- LispWorks specific: the cleanup should be in "When quitting image" HOT 1
- Undefined function osc:encode-message - can't server-quit HOT 4
- sound-in.ar not working HOT 16
- ecl fails HOT 2
- Set device from repl HOT 1
- Why the square brackets? HOT 8
- Suddenly no sound during playing, and (SERVER-STATUS *S*) gives no output. HOT 7
- Is this client complete? HOT 3
- Some systems failed to build for Quicklisp dist HOT 4
- NamedControl HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cl-collider.