defaultxr / cl-patterns

Library for writing patterns to generate or process (a)musical sequences of mathematically (un)related (non-)compound values in Lisp.
https://w.struct.ws/cl-patterns
MIT License
76 stars 10 forks source link

[Feature Request] Allow for :server-options key in start-backend #11

Closed dylanjm closed 3 years ago

dylanjm commented 3 years ago

I've been having to launch the sc server with a few options disabled using sc-collider. So my make-external-server command has to be:

(setf *s* (cl-collider::make-external-server
                        "localhost"
                        :port 8000
                        :server-options (cl-collider::make-server-options
                                         :num-input-bus 0
                                         :load-synthdefs-p 0)))

I've noticed there is no way to pass these options into cl-patterns:start-backend. Any way to make these args available through the cl-patterns interface?

defaultxr commented 3 years ago

Passing options to the backend via start-backend is a good idea, thanks. I've added it in commit 63d704f14b8d5004aecf74eee691286556291fc7 ; any keyword arguments not recognized by start-backend will be passed to make-server-options. Let me know if you have any issues with it.

dylanjm commented 3 years ago

That looks great. Thank you!