Hi all.

I was wondering if there exists a function which returns the grace level of
a given (grace note) segment.

It would make it easier to solve bugs or possible strange behavior for some
actions (for example lines 931-1021 of libmscore/undo.cpp) when these are
performed on grace notes.
[For example trying to add slurs, tremoli, arpeggi to a series of grace
notes and not the first of the grace notes (even if I am not sure if all
these actions do make musical sense).]
It could be useful also in other part of the code. For example, I tried to
implement a very rough version for the import of grace notes of capella file
(https://github.com/musescore/MuseScore/commit/f16d1a2), which is based on
pieces of code I found somewhere else in the project (maybe xml import?).
Soerboe also proposed a solution for a bug concerning cut-and-paste by
creating a function which gives the grace level, in pull request:
https://github.com/musescore/MuseScore/pull/165 [some changes of this pull
request should now be updated for recent changes of the code, such as the
substitution of subtype()].

The point is that once the grace level is known, one can have access to the
relevant segment at the correct grace position by using for example
Measure::getGraceSegment(tick,gracelevel).

In summary, does such function (which gives the grace level) exist? Is it
planned to be added?

Thanks.

Ciao,
ABL

P.S: With the Nightly Builds, try to add a slur to grace notes, or insert
two grace notes and add a tremolo on the second one, or insert two grace
notes and add a tremolo between them, and you will understand the strange
behavior I am talking about.



--
View this message in context: 
http://dev-list.musescore.org/Level-of-grace-note-tp7578015.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to