musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.29k stars 2.66k forks source link

[MU4 Issue] Input cursor on tablature (TAB) staves is smaller than in MU3 #10664

Open DmitryArefiev opened 2 years ago

DmitryArefiev commented 2 years ago

Describe the bug Input cursor on tablature (TAB) staves is smaller than in MU3

Capture

Expected behavior Cursor should be the same as in MU3

Platform information macOS, Windows, Linux

jatinAgarwala commented 2 years ago

Hello! I would like to try working on this issue if it's still open

RobFog commented 2 years ago

It’s all yours. 😊

Tantacrul commented 2 years ago

Any movement on this?

somethingstarted commented 1 year ago

i'm looking for it but I can't find it. been peaking through the code trying to familiarize myself with musescore last few days. what is the highlighter called in the program? and what would be a good file that i can start my search in?

i've been looking in \src\engraving\internal\engravingconfiguration.cpp and \src\engraving\libmscore\fret.cpp

but i haven't found the blue highlighter yet. i was thinking about making an IF fret number is 1 character, leave width as is, and if it's 2 characters (like in the example) make it x percent larger or whatever but i wont know if that's a good idea or not till i find where it's at and am able to figure out how to preview/compile programs with cmakes (i've only done VS solutions so far)

gonna watch some tutorials on previewing/compiling cmakes and i think once i figure that out, it'll make this much easier and faster for me

edit: so far no luck in me getting cmake and qt to work in either visual studio 2022 or vs code. i'll keep tinkering with it until something works and poking around the source to get more familiar with it. but if cbjeukendrup did want to point us in the right direction that would be helpful to either me or anyone else who wanted to take a stab at it

Tantacrul commented 1 year ago

Maybe @cbjeukendrup might be able to help?

cbjeukendrup commented 1 year ago

@somethingstarted In MuseScore 4 (master branch), the code for the note input cursor is in src/notation/view/noteinputcursor.cpp (and the methods that are called from there).

You might want to compare it with MuseScore 3 (3.x branch), where the code seems to be in PositionCursor::paint.

Tip: I wouldn't recommend to compile the 3.x branch, but just download the ZIP from GitHub and open it in Visual Studio Code, which is enough to browse the code. I'd also keep it in a separate folder, because when you switch between 3.x and master, you need to delete your build folder so that everything needs to be re-compiled, which takes long, so therefore I don't recommend it.

Compiling in Qt Creator might be a bit easier and is documented here: https://github.com/musescore/MuseScore/wiki/Compile-in-Qt-Creator

Alternatively, you can try to use Visual Studio, for which we have some documentation here, but this documentation is mainly about the 3.x branch and thus possibly outdated for master: https://musescore.org/en/handbook/developers-handbook/compilation/compile-instructions-windows-visual-studio#2._Building

somethingstarted commented 1 year ago

ight. i got it* working. properly starting on this issue now.

*the qt debugger.

Tantacrul commented 1 year ago

@somethingstarted - cool. If it works well, we might throw it in the patch release. If not, the next patch (if we need it) or 4.1

somethingstarted commented 1 year ago

I think i committed correctly. I made a quick patch for it, but i want to do more on it later.

should i continue with my idea to make it so that it changes sizes, or has the ability to be resized differently if there's a 1 digit fret (0-9) or 2 digit fret (10+) or put that idea on the shelf?

somethingstarted commented 1 year ago

2 quick things-

I think it's ready now,

I'm hoping i did everything right, should just be noteinputcursor.cpp on the commit. that's the only file I made any changes to.

DmitryArefiev commented 1 year ago

@somethingstarted I've tried https://github.com/musescore/MuseScore/actions/runs/4052287331 and don't see a difference with master - the cursor is still not so wide as in MS3

somethingstarted commented 1 year ago

Hey, i'm still working on it. I'm new to Git and am having someone help me. we deleted my old fork, and that caused this to show as "closed" but i am determined to get the thing working.

zacjansheski commented 1 year ago

@cbjeukendrup @somethingstarted is there a way to get this across the finish line?

cbjeukendrup commented 1 year ago

@somethingstarted It looks like you closed your PR (https://github.com/musescore/MuseScore/pull/16209). What was the reason for that? And would you still like to work on this issue, or should we ask someone else?

somethingstarted commented 1 year ago

@cbjeukendrup someone rightly, politely, pointed out that my push req was a bandaid and not a fix to the root of the problem, and then i realized i was way in over my head and needed to work on smaller, less complex projects to get better at c++ before trying to contribute here in a meaningful way.

jessicahalvorsen commented 9 months ago

Hi @cbjeukendrup!

Has this issue been solved or I could I give it a try?

cbjeukendrup commented 9 months ago

@jessicahalvorsen Hi! This one is still available!

jessicahalvorsen commented 9 months ago

@cbjeukendrup great thanks! I will start working on it!