Access fingering

13 views
Skip to first unread message

konstantin...@gmail.com

unread,
Oct 15, 2014, 2:35:46 AM10/15/14
to ab...@googlegroups.com
Hello,

I want to access the fingering. The string is "!1!C". Is it possible to get the 1?

With kind regards
Konstantin

iubito

unread,
Jan 6, 2015, 5:21:37 PM1/6/15
to ab...@googlegroups.com, konstantin...@gmail.com
Hi Konstantin,
On any decorable element (Note, BarLine...) you can call
Decoration[] getDecorations()

then you browse the Decoration array.

if (decoration.getType() == Decoration.FINGERING_1) {
//you have a 1
} else if (decoration.getType() == Decoration.FINGERING_2) {
//you have a é
}

!1!C and +1+C are parsed.

Happy 2015
Sylvain
Reply all
Reply to author
Forward
0 new messages