-
Notifications
You must be signed in to change notification settings - Fork 823
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
widgets/musickeyboard ES6 port, enhancements etc. #2826
Conversation
@walterbender please review. ps:- this is in regard to comment, Minor UI enhancement is what I thought was relevant here and that's what I have done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please go through my comments. Thanks
* @returns {void} | ||
*/ | ||
|
||
init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better if we could remove the init
function and do things in the constructor instead, please make the necessary changes where the class is instantiated as well. We could make another function to setup the UI elements and event listeners and call it from the constructor for making our code more organised. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's imperative to reach a consensus on this.
- phrasemaker
- pitchdrummatrix
- pitchslider
- pitchstaircase
- rhythmruler
- status
- temperament
- tempo
- timbre
all of these widgets have init
function. If we're deciding to eradicate init
function all together, it be done with all widgets and not just arbitrarily.
@ksraj123 thanks for the review, I have committed your suggestions. @meganindya Please read my comment on @ksraj123's suggestion for eradication of |
Initially I thought putting all the But, all that doesn't help the application on the user-end; it is merely a cosmetic operation on the codebase. And, since this application is going to be replaced soon, I don't see much value in doing that. So, I think it's better to keep it as is. Even the code refactoring isn't helping a lot right now, unless it makes the application more stable for archiving. Don't bother much with these. |
Something like #2632 is a higher priority requirement as it significantly helps with the stability of the application, which currently is very unstable and unpredictable when hosted remotely. |
Thanks for the insight @meganindya I presume this PR is ready to be merged then, please review @walterbender |
I think that the behavior of the + button has changed. Could you please test? |
Sure Behavior on my local (concurrent with this PR's branch MB_local.mp4
Behavior on Master branch (in sync with MB's master): MB_master.mp4
They're identical, just the notes that were added with presets are different. |
As you can see in your video, the pitch block created was not properly attached to the music keyboard clamp --- it stayed in the upper left behind the palette. There seems to be a bug with the connections when adding the new block. |
Right, this is a regression Also, this behavior is prevalent on both master branch and this PR. |
Any addition be it hertz or pitch seems to have this bug in this widget,
But if I then [after(i)],
I'm trying to find the cause of this bug. |
I've not looked, but the place to look is in the code that chains together the blocks after the new block is created, beginning at L 1397 in the old code. (The problem may be in _addNotesBlockBetween() as it seems the insertion is broken.) |
@walterbender please take a look at #2839 If we add a note, then drag the new added note around..you can see the notes that were present in clamp join the new added note to form a seperate new group. |
Hey @ricknjacky, I find this issue of improper alignment of blocks inside the clamp when new ones are added interesting. I would like to give this a try if you are facing some difficulties with it. Thanks |
Definitely, it'll be a great opportunity for me to work with you and learn a lot. Please tell me if I can help with anything.. also..there are a lot of other bugs I've tagged an issue above.. let's solve all these once and for all. 👍 |
Sounds great. I have opened a PR #2844 fixing this issue. |
Issue references:- #2767, #2630, #2609 #2629
In this PR, I have:-