lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative partcombine strategy possible?


From: Abel Cheung
Subject: Re: Alternative partcombine strategy possible?
Date: Fri, 11 Jul 2014 21:43:55 +0800

Yes, this is exactly what I needed, thanks a lot!

On Fri, Jul 11, 2014 at 9:08 PM, Janek Warchoł <address@hidden> wrote:
> 2014-07-11 13:56 GMT+02:00 Abel Cheung <address@hidden>:
>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]