-
Notifications
You must be signed in to change notification settings - Fork 991
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
Implemented current interval names block #3617
Conversation
@walterbender @pikurasa can you review this |
A few comments:
|
@walterbender so, this is supposed to change ? |
Maybe the calculations should be in musicutils.js too |
The basic idea is to keep the music details in one place. |
@walterbender did some changes - declared const objs in musicutils and a GetNotesForInterval function which in getting used in both intervalnumber and currentinterval block |
Looks good. Just need @pikurasa to sign off on the names. |
I think I understand the system for the most part, but one thing confuses me. It seems to me that 0 is same letter, 2 is one letter up, 3 is two letters up. Is that correct? If so, it skips "1". (Assuming I'm correct in my observation) I think we should, instead, have 1 as one letter up, 2 as two letters up, etc. So, if I've not made any mistakes, this list should look like this:
If you have any questions, please let me know. |
@pikurasa Got it . I have done the changes . |
I am getting an error: Uncaught TypeError: Cannot read properties of undefined (reading 'substring') |
^^ It was when I tried to access the interval name from inside of a note block. It seems to work fine when I have it after the note block. |
@walterbender i think it was happening bcz GetNotesForInterval was returning 0 instead of object at line 4492 . fixed it |
I tested it, and I got unexpected results. Please see the following: current-interval-block.webmThe first and last note combinations are correct (C and A): they are both properly identified as major sixths. The second note combination (E and C) should be minor sixth, and the third note combination (G and E) should be major sixth. Also, for reference: |
A couple notes:
Expanded intervals:
Test file and results: |
Issue #2209
This will print the current interval names like perfect unison , major second , augmented second etc . and removed NOTESTEP and added ALLNOTESTEP which support more notes like ( #, b )
current.interval.names.mp4