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

Reorder nodes #134

Open
cianoc opened this issue Mar 25, 2024 · 3 comments
Open

Reorder nodes #134

cianoc opened this issue Mar 25, 2024 · 3 comments

Comments

@cianoc
Copy link

cianoc commented Mar 25, 2024

This is an awesome library, which is making me fall back in love with SuperCollider after a long break.

I've noticed that there doesn't seem to be a way to reorder nodes/groups in cl-collider.

It's fairly easy to add this, and I'd be happy to do this. I was thinking move-node, and something like the following structure:
(defun move-group ( id to &key (server s) (pos :after) )

And that it would take the ids :after :before :head :tail

In addition I'd write it so that it works seemlessly with group, node objects as well as ids. Any objections to this approach?

Also, I use expRand all the time in SuperCollider so I wrote a little utility function for this. I could do a pull request for that as well if you have no objection to adding exp-rand as a new function?

@defaultxr
Copy link
Contributor

FYI, for expRand, cl-collider does have exp-rand.ir and exp-range already. Not sure how your utility function differs from those, though.

@cianoc
Copy link
Author

cianoc commented Mar 25, 2024

Well you can't use exp-rand.ir on the client side, so my function just does the same thing there. That's it really. Not the most exciting piece of code, but I find it useful.

@byulparan
Copy link
Owner

Implementation of sclang features not found in cl-collider is always welcome :-)

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