-
Notifications
You must be signed in to change notification settings - Fork 11
Refactor Main File #149
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
base: main
Are you sure you want to change the base?
Refactor Main File #149
Conversation
|
@elliotmatson this is what I hinted at in #148. Not having a desk currently, I was unable to verify that this actually works. |
|
@janikwitzig I should be able to take a look at all these PR's later this week! |
f669ff9 to
2c0c548
Compare
2c0c548 to
0f86038
Compare
|
@elliotmatson I rebased this PR onto the main branch and created a handler for the OSC forwarding When this is merged into the main branch, I'd love to try out the Beta Release feature of Companion. I know a few people who would gladly be beta-testers for this |
|
Ok great! I've been working through these, I'm working on the CC surfaces currently. Is there a suggested merge order for these? |
|
@elliotmatson we should merge this PR first. Since it touches many files the rebases are a good bit of work otherwise. The adjustments to the open PRs will be relatively minor. |
bc7eca6 to
df414e6
Compare
|
This seems like it's in a good spot, what all have you tested so far? I can test things as needed |
|
I was able to test the 'Set Level' and 'Adjust Level' action before getting caught up in a mean bug that is now fixed. I also checked on some feedbacks without much of a system, just to see if it works. Variables work as well |
|
Ok, I can start working through the actions. Do we want to round any floating point variables to the nearest 0.1 dB? That seems to be what the wing does internally, and I'm assuming that people don't want a billion decimal places of precision. It would be simple to do in the this.variableHandler.on('update-variable', (variable, value) handler, do you think we would need to check the delta from the original value so that small changes aren't constantly hitting the rate limiter? |
|
Rounding sounds great. To keep the main file clean I'd probably opt to doing the rounding in the variable-handler file itself only for the variables that we want this. This would keep the main file clean and prevent accidental rounding of values we potentially don't want to round. |
|
Check 2384f35. Can't test right now, but I hope this works |
eb416c3 to
0ac4a88
Compare
|
@elliotmatson Your suggestion of rounding the variables is now implemented. I checked every action except for the card (don't have one), and everything is fine. Two minor issues popped up, but those had to do with the original implementation rather than the refactoring. I would happily proceed to merge this into main. Should we do a release of the current main and try to release these changes as Beta? |
|
I've been testing as well, and seems to be working! Do you mean release the current main as stable, merge, then release a beta? |
|
Yes exactly 👍 |
|
I'm great with that! |
…g fields Increased default subscription interval to 9000ms
changed: added option to omit logging of command upon sending
acf6e9c to
0701bb1
Compare
|
@elliotmatson If you agree, I would proceed to merge this into main and release it as a beta |
This PR aims to evenutally clean up the main file by separating responsibility into distinct objects.