grame-cncm / guidolib

Guido project - music score layout engine - music description language
http://guido.grame.fr
Mozilla Public License 2.0
152 stars 34 forks source link

Enhancement: Add placement parameter for Fingering tag #62

Closed arshiacont closed 5 years ago

arshiacont commented 5 years ago

The Fingering tag in current GuidoLib is pretty useful but it will be even more useful if we could add a Placement parameter to put the fingering. Currently the tag accepts dy and dx parameters and the default position is below the encompassed events.

While this works when the stem is pointing upwards, it would be impossible to calculate correct dy when the stem is pointing downwards.

Adding a placement or position parameter similar to Articulations in Guido will solve this problem.

dfober commented 5 years ago

Agree. but I won't have time until February.

arshiacont commented 5 years ago

No problem. Meanwhile, I imagine that you are going to overload Fingering with an existing class. If there is an example of this I can look at + pointers on which class to use, I can start looking and submit a Pull Request. Happy new year! :)

dfober commented 5 years ago

Happy new year too !

Actually, adding a new parameter at AR level is easy. Currently, ARFingering is almost only a type derived from ARText (see src/engine/abstract/ARFingering.h).

Otherwise I’m in favour of ‘position’ for the tag name (already widely used) that could take the following values:

let me know what you think

Le 3 janv. 2019 à 09:56, Arshia Cont notifications@github.com a écrit :

No problem. Meanwhile, I imagine that you are going to overload Fingering with an existing class. If there is an example of this I can look at + pointers on which class to use, I can start looking and submit a Pull Request. Happy new year! :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grame-cncm/guidolib/issues/62#issuecomment-451084882, or mute the thread https://github.com/notifications/unsubscribe-auth/AAaTwynv_Td_2g4MO6wC8APWQr8BxX2bks5u_cW6gaJpZM4ZeIdS.

dfober commented 5 years ago

that's done ! Examples of the new attributes are available from gmn-examples/new-tags-v1.66 Any comment or additional suggestion ?

arshiacont commented 5 years ago

Wow! Thanks Dominique.. I'll have a look on Monday when I'm back in town! :)

I just added a request for Pedal tag..

and am asking our copyist what would be improvements they can't live without.. Will let you know :)