Note/MultiNote.setColor

26 views
Skip to first unread message

thomas.a...@gmail.com

unread,
Sep 24, 2013, 9:26:02 AM9/24/13
to ab...@googlegroups.com
Hi at all,

I know, I am not the first person who wants to color a (or some) note(s).
However is there a new version (JAR) or has someone done this already, so i am able to color notes/multinotes?

some info:
my goal is to detect motifs in a midi-file and color the motifs in the sheet. it would be great if someone has some help or hints for me.

kind regards,
Thomas

Hanns Holger Rutz

unread,
Sep 24, 2013, 9:32:57 AM9/24/13
to ab...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You have to get the rendering element for a music element, and call
`setColor` on it. Like this:

https://github.com/iem-projects/PointLib/blob/composer_ot/src/main/scala/at/iem/point/ot/sketches/ChordSeqView.scala#L114

This does _not_ work if you pass in the `MultiNote` apparently, but
you have to iterate over all the containing `Note` elements.

Also, the `JScoreComponent` is not automatically refreshing itself, so
you need to call `repaint()` afterwards.

Best, .h.h.
> -- You received this message because you are subscribed to the
> Google Groups "abc4j" group. To unsubscribe from this group and
> stop receiving emails from it, send an email to
> abc4j+un...@googlegroups.com. To post to this group, send
> email to ab...@googlegroups.com. Visit this group at
> http://groups.google.com/group/abc4j. For more options, visit
> https://groups.google.com/groups/opt_out.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSQZSIAAoJEKZFmaPaYk6QMVIP/14H4Uuck28m0j31UHRntZvv
It2d8I9DXCSo4iXIgkvgIn6EhYIYuEIJ/vlOy3CsfeK5SCvQrsjqn8Z1ADvUCzXX
JaPlFCMv6vRxv+KWWODtR+j5A0+nvhi648aqUj1yT55u32xH8laKOXTKqV34sLT1
9lHO/nW80hr60+ZIUxmqO4FT/hjlO0JN3q3mQOvv+ed+3pxksjDjKnCoAnsizSFN
Nu7Y9YKT/2paai9wLLTYxAA8csycw0g6L1760RJW0HWucbQ/YqzAmuJA8kLJ63v9
moqlIv5iM42Ci3GnC1gv55FnpuZXNmDQ6dDM0UemVBx6ESiuqEYieBpY/0d/3Vhk
y7tRDhYK4FNOMQzlS3J3PKlrAl5CRh/MsDfK66cSgmOT96Wd8w+j11jHy2TxTYZV
ajthdhUFGCOKTUiVUBnEHY9wzoACUU156QIBfOAjzZGVtGZ1Fm4k5Gxyv0olu9tX
D8CD5ndqhnBkS8yIdbnE3cT7nhTPKepZ9nY9rtU2ls/hEtbMDHeFcA6FCWELYt7c
wZwtCxlkGDfiB+Ysk3qY21oguZyCMBAFXrWRS15u59KOAJ91q19j1g8q+O6oVjNf
eWIq8GXO+Efhr+5csXyJQJcY63i+JoH9hy8pvbAnPpWke29+UyvtfWRpARTOIzuJ
wn/l6Lx6FW+Y+g2hjbyl
=Yfyd
-----END PGP SIGNATURE-----

thomas.a...@gmail.com

unread,
Sep 25, 2013, 2:52:30 PM9/25/13
to ab...@googlegroups.com, thomas.a...@gmail.com
thanks ;)
Reply all
Reply to author
Forward
0 new messages