lilypond-user
[Top][All Lists]
Advanced

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

Re: Doubled entries with partcombiner


From: Urs Liska
Subject: Re: Doubled entries with partcombiner
Date: Sat, 11 Apr 2015 00:56:00 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0



Am 10.04.2015 um 23:07 schrieb Urs Liska:
Am 10.04.2015 um 23:05 schrieb Urs Liska:


Am 10.04.2015 um 01:29 schrieb Urs Liska:


Am 08.04.2015 um 10:18 schrieb Mark Knoop:
At 09:35 on 08 Apr 2015, Urs Liska wrote:
Am 8. April 2015 08:28:47 MESZ, schrieb Urs Liska <address@hidden>:
Hi all,

what is the most viable approach to suppress all the doubled items
like makuos,
markups

dynamics etc. that are produced by the partcombiner?
Perhaps the merge-rests-engraver in OLL is adaptable?


I could now look at that code, and it seems promising. Provided it can perform its action later than the partcombiner. But I think this should be the case.
Unfortunately I'm not sure yet if I manage to make that work. In any case I don't think I'll be able to adapt it to spanners because that would require a significant additional layer of housekeeping compared to "simple" markups.

OK, I've done a very primitive rewriting of the merge-rests-engraver, as can be seen in the attachment. Surprisingly the file compiled without real errors on first try, but it issued a warning "

Sorry, hit the wrong keyboard shortcut ;-(

The file issued the warning:

warning: unknown translator: `merge-markups-engraver'

warning: cannot find: `merge-markups-engraver'

and produced "normal" output.

Can anyone point me to the right direction to make this "engraver" noticed by the \score?


OK, sorry, I immediately found two errors whose fixes make the file compile without warnings - but at first still without visible result.

In line 37 I have to feed "markups" into the for-each loop and not "mkup".
And the engraver has to be consisted like \consists #merge-markups-engraver,

And from there I was able to solve my initial request with regards to markups. See attached file.

I managed to remove doubled markups and also DynamicText items.
However, the next step would be to catch hairpins and text spanners too - because they are also very annoying in partcombined staves.

PLEASE help me with this because
a) I'm quite urgently in need to fix this stuff for a current project and
b) I'm sure this will result in a very helpful tool for common use.

Many thanks in advance
Urs

Thanks
Urs




_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

Attachment: merge-partcombined-markups.ily
Description: Text document


reply via email to

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