Yes, this is exactly what I needed, thanks a lot! On Fri, Jul 11, 2014 at 9:08 PM, Janek Warchoł <[email protected]> wrote: > 2014-07-11 13:56 GMT+02:00 Abel Cheung <[email protected]>: >> Does anybody have experience about overriding existing partcombine >> methods? I have a score that behave like the one below: >> >> - When both voices have identical rests, use partcombineUnisonoOnce >> - Use partcombineApart for everything else >> >> In the snippet below, the second line represents what I intended to >> do, but manually overriding each rest for several hundred bars isn't >> quite practical. Is there any possibility of using custom value for >> PartCombineForceEvent forced-type property? Or there's any other >> elegant method that helps saving note input time? >> >> ========================== >> upper = \relative c' { c4 r8 d r4 e8 d c2 r2 } >> lower = \relative c' { c4 r8 b c d e b c2 r2 } >> >> upperClumsy = \relative c' { >> \partcombineApart c4 >> \partcombineUnisonoOnce r8 >> d r4 e8 d c2 >> \partcombineUnisonoOnce r2 >> } >> >> \partcombine { \partcombineApart \upper } \lower >> \partcombine \upperClumsy \lower % <--- desired >> ========================== > > > Maybe this will help you: > https://github.com/openlilylib/openlilylib/tree/master/editorial-tools/merge-rests-engraver
-- Abel Cheung New GPG Key fingerprint: F43B 7F88 3D7B 4B58 928E 0151 EC2B E414 3B03 A8AC Old GPG Key fingerprint: 671C C7AE EFB5 110C D6D1 41EE 4152 E1F1 C671 86FF _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
