Instrument part longName/shortName restriction
I really need to be able to rewrite the instrument part longName/shortName fieldsfrom a plugin. For example, it might be necessary to have Flute 1 and Flute 2 on separate staves.
I do not understand why the names are read-only.
Is this likely to be possible in v2? If not this should be a feature request, although not applicable to most users.
Comments
In 2.0 we have:
partName QString name of the part, used in the mixer, read only
In reply to In 2.0 we have: partName by Jojo-Schmitz
That doesn't really help. I can understand that MuseScore needs internal names that it understands and perhaps they are only ever overwritten fot the users purposes, but the user can edit the long and short names on a stave, so why can it not be done from a plugin? It doesn't make any sense.
Even if there are technical reasons I think they should be tackled.
In reply to Read-only names by cwhysall
My comment wasn't intended to help, but to state the current facts :-)
And yes, this should be tacked, esp. as it seem to be a regression, less functionally ( neither long- nor short name) rather then more
In reply to My comment wasn't intended to by Jojo-Schmitz
Yes, indeed, I did recognise the purpose of your comment, and thank you.
I've just had a nose around the MuseScore code out of interest to see if any obvious reason could be seen. It is all a bit esoteric for me at the moment, and I won't have much time to look at it. I certainly do not intend to change it!
However, for anyone who is working on system.cpp, I noticed a typo in this line (line 639ish):
qDebug("%p System::add(%s, %p): there is alread a barline %p", this, el->name(), el, _barLine);
Should read:
qDebug("%p System::add(%s, %p): there is already a barline %p", this, el->name(), el, _barLine);
My contribution to MuseScore code!
In reply to Indeed, and typo in code by cwhysall
Maybe my PR https://github.com/musescore/MuseScore/pull/635 helps?
I won't worry too much about that typo in the debug output, no mere mortal will ever get to see it.
In reply to Maybe my PR by Jojo-Schmitz
... I should have noticed it was debug. Silly me.
Thanks for raising the PR.
In reply to Of course... by cwhysall
my PR apparently is jumping too short, unfortunately, it doesn't compile and I'm afraid fixing the error it reports is beyond my knowledge
In reply to Maybe my PR by Jojo-Schmitz
That typo should be fixed with my next PR https://github.com/musescore/MuseScore/pull/637
In reply to In 2.0 we have: partName by Jojo-Schmitz
partName is now writable, as of 5c386d2981