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
Adding a "replace mode" to MIDI Input V2.x #1039
Conversation
Adding a "replace mode" to MIDI Input frescobaldi#866
Adding a "replace mode" to MIDI Input frescobaldi#866
Adding a "replace mode" to MIDI Input frescobaldi#866
Thanks for the contribution. In order to reach more potential testers you should write a note to the Frescobaldi and lilypond-user mailing lists, pointing both to the original feature request and this pull request. |
Not sure how to optimize the regular expression to fit lilypond note names exclusively. Now every 3 or less letters word is a note name if it doesn't start with #, \, _, -, ^ symbols and doesn't end with dot. Of course it also finds such 'notes' within quotes if happen. I am not experienced in Python nor in regular expressions so I give up to make it better for now. From the other side it's pretty usable even so.
This fixes issue #839 I may be interested to test it if it was for Frescobaldi 3. There's any reason why this was implemented for v2 only? |
I have had problems with qt libraries trying to launch v3, but v2 works fine for me, so I typed my code where it works. It's very simple bit of code and it wouldn't be a problem to paste it to another version, I believe. Are there any functional advantages of the v3, by the way? I'm using v2 and pretty satisfied. |
https://github.com/wbsoft/frescobaldi/blob/master/ChangeLog Not that many, yet. But you'll be further and further away from the current state. For example we're still waiting for (me to) merging the new version control functionality from last year's GSoC, and there is definitely more to come ... The instructions for running Frescobaldi 3 (on Linux) have been greatly improved BTW: https://github.com/wbsoft/frescobaldi/wiki/Installation-on-Linux-(General) |
@deviskra I've tested your patch successfully. It's a very nice addition! However, to get it merged to master, it should be rebased on master. I've pushed my rebase here, if you want to test it. |
@fedelibre Thank you for testing and appreciation of my scribbles. I tried once to install higher versions of Python on my machine, but something went wrong, so I haven't tried Frescobaldi from the master branch yet. Though, I haven't tried hard cause 2.x version works fine for me and I am lazy. Maybe it's time to try again. |
@deviskra I take back my previous comment. My midi-replace-mode-rebased branch is working correctly! I just made a stupid mistake. I had the Re-pitch mode flagged while the cursor was on an empty line: obviously there was nothing to be replaced and nothing happened. |
@fedelibre can I understand your last comment that this patch works as expected? |
Yes, it works as expected. #839 is actually a sort of "metaissue" as it aims for two features already covered by other issues:
Up to you if closing #839 or not. |
Very useful feature if a melody is doubled in other voices! As I understand there are no obstacles to merge it to the v.3 master branch. Why it still isn't? |
@fedelibre Indeed I don't have a MIDI keyboard available. I would follow your advice without testing myself, provided @wbsoft is OK with that. But I'd ask you (or @deviskra) to re-commit and push with a meaningful commit message that will also give us information outside of Github (i.e. without the reference to an issue. |
I'm closing this PR as it's been replaced by the other one. |
Adding a "replace mode" to MIDI Input #866