-
Notifications
You must be signed in to change notification settings - Fork 690
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
Turn signals.py into Signal<Combiner, R, A...> variadic template #909
Conversation
20ebf74
to
0a5a895
Compare
This is a noble and worthy effort. However, we have to manage multiple code bases now (Mixbus and LiveTrax), and we can't really consider applying it without an accompanying script that can be run to automatically edit additional files present in those code bases too. I assume you pobably used such a thing when working on this? |
I just used regex pattern matching for batch replacing occurrences across all files. I did it in a bit of an ad-hoc way because there were stylistic differences. So there is no fully automated script, but I can explain the process. For the first commit the basic pattern was this for users of
Pretty simple here. It is essentially the same as There was a single Now with the stylistic differences. Some
With these considerations, I started batch replacing each Then I replaced
There is another path though. I can separate the replacement of I'm open to suggestions. |
0a5a895
to
ff05e7e
Compare
I got this in a mergeable state for users of the old |
ad4c558
to
5b12535
Compare
I've written a simple script to convert all signals:
|
5b12535
to
a1feb1a
Compare
a1feb1a
to
896efc3
Compare
Rebased and merged as 9.0-pre0-243-g0ade0b2212 I also ran the script to convert the codebase to use new |
My C++ skills were a bit rusty and I chose my favourite DAW to practice on. I thought this could make the code a bit more accesible for external contributors. I hope you find this useful.