@synthdef Alternative #338
Replies: 2 comments 2 replies
-
Here is the big debate about this sort of thing Its shares a lot of similarity with the current impl. Also, this doesn't appear to work with #340 |
Beta Was this translation helpful? Give feedback.
-
TBH I'm not a big fan of the decorator. It's a little magical for my taste, and it doesn't play well with static type analysis. That latter is really my least favorite thing about it - when the decorated function is called, all the values are Now that said, I'm into the idea of supporting |
Beta Was this translation helpful? Give feedback.
-
Hi, first, I love this project!
As you may know, there is a long standing argument in supercollider (lang) over args vs NamedControl (I'd link to the forum post, but it is quite toxic...).
Whilst the @synthdef decorator goes some of the way to completely solving this issue, I was wondering what you thought about this instead?
One downside with the implementation (@synthdef) is that it requires the control definition to be split between the argument (where its name and default value are located) and the decorator (where the rate is). This can be quite confusing when you have many arguments.
I've made a pretty simple implementation of this (I don't know too much about python, but I think this works well):
One improvement might be assuming
kr
if presented with aUnion[float, Tuple[float, ...]]
.Again, I think this project is great and can't believe I only just found out about it!
Jordan
Beta Was this translation helpful? Give feedback.
All reactions