-
Notifications
You must be signed in to change notification settings - Fork 718
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
ABC conversion to MB #3837
base: master
Are you sure you want to change the base?
ABC conversion to MB #3837
Conversation
Question: Why do you convert to Solfege? If you do that conversion, you need to account for the key/mode. |
@walterbender fixed this issue |
Devin spotted an issue with Happy Birthday. Are there ways to accommodate key/mode you are not considering? |
Any progress on this? |
@walterbender yes i am working on next step ie abc parser consider the key which the music is in |
Some sample test data are found here: https://abcnotation.com/examples |
@walterbender @pikurasa
could you let me know if anything to add above |
i have tested it with simple once i will test with long and complex composition where it could break the conversion |
The space between the accidental and the letter needs to be removed. |
js/activity.js
Outdated
}); | ||
|
||
if (accidental) { | ||
return note + (accidental.acc === "sharp" ? " ♯" : (accidental.acc === "flat" ? " ♭" : "")); |
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.
"sharp" ? "♯"
"flat" ? "♭"
@pikurasa can you test again? Key signature seems to be working now. |
Will do. Fams been sick (again!), so it's been slow going... but I have time at the moment. |
@gitjeet Please remind me how to test this. I've tried:
None of these seem to work... |
VID_20240415_232605.mp4Hi @pikurasa we just need to drag and drop the abc file to MB, could you also check you are on the right branch ? |
I am on commit 833d866. Thanks for the video -- that works! I recommend that we also make a few of those other options available, too, such as opening a .abc or using "ctl-v" to paste the code in and import it that way. Meanwhile, I'm reviewing (thanks again!) |
(I found plenty of feedback, and I'm working on a helpful way to show the feedback. For example, it doesn't seem to account for accidentals, when those accidentals are in the key. I'll upload some examples soon.) |
So, this is what I tested: I tested Amazing Grace, found here: https://abcnotation.com/tunePage?a=thesession.org/tunes/2749.no-ext/0003 It opened as the following: There's a lot of good that's in here, but the following needs to be fixed: (Roughly in order of importance)
Here are some files to help: A simple fix of accidentals given in keyA fix with each line contained within a separate action blockAmazing-Graze-Lines-Broken.zip A fix with each line contained within a separate action block, plus another start block with chordsAmazing-Grace-ABC-with-chords.zip Note: I'm not really sure how to do a sus chord in MB at the moment, so I just put "custom" in as a placeholder. I'm sure some of these other chords would need some explanation. Also, we seem to be mixing fixed systems (e.g. major, minor) with moveable (e.g. triad, seventh, etc) in how we do chords, so that really needs some more digging into on our part. 2nd Note: Since the first and third lines have the same progression, I just used the same action block. **Re: solfege (Do, Re, Mi) and alphabet (C, D, E) -- again, solfege can be either moveable or fixed; alphabet is only fixed. In this light, I don't quite understand Walter's comment above. You could do either solfege or fixed. Both fixed solfege and alphabet need to be handled the same way. Handling solfege (or scale degree, which works the same way) would need to be handled differently. It may be nice to give the user a choice whether they want to convert to (fixed) solfege or alphabet (presumably, we would not be converting to a moveable system until we get fixed working). At any rate, what needs to be done now in terms of conversion of ABC to MB-alphabet is taking the original key into consideration, so, for example, if there are F sharps in the key signature, all the Fs need to be sharped. Hopefully this feedback helps. Please let me know if you have any questions. |
I made my original comment about solfege vs letter when the code was not taking into account the key signature. Re suspended chords, we could define them. We don't have them in the predefined set at the moment. |
Ok, but how does one create a custom chord at the moment? I know how to define a custom scale, but not chord... |
Thanks @pikurasa for the feedback. I will start working on fixing and improving it. |
Fix MB structure added print setname blocks
@walterbender @pikurasa The ABC conversion to MB is almost completed everything is implemented except the chord feature and some name issue is pending, |
I don't think you need to do chords for this PR.
In MB, we use number for octave. I'd need to do some more research to see how ABC maps to our octave naming system. |
|
I tested with https://abcnotation.com/tunePage?a=www.atrilcoral.com/Partituras_ABC/l.zip/l/0854 and:
This all said, you are doing great work here. |
Re: tuplets, unsure when I'll be able to do a more comprehensive review, but for starters: The group of notes An aside: I greatly prefer the way we handle note lengths to anything else I've seen so far. It's so much more transparent. |
Thanks, @pikurasa, for the feedback and kind words. I will make the necessary changes |
@gitjeet where is progress on this? I'd love to be able to merge this as I expect it to be very useful. |
@pikurasa i am working on this will try to wrap this by this week |
|
-Converts .abc to MB