lilypond-user
[Top][All Lists]
Advanced

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

Re: Combining Multimeasure rests


From: Urs Liska
Subject: Re: Combining Multimeasure rests
Date: Tue, 11 Nov 2014 09:32:09 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hm, I was sure I *did* attach the file ...

Am 11.11.2014 09:29, schrieb Urs Liska:
No idea anybody?

I think I can narrow down the question even more:

Running the attached file gives


(make-music (quote Music))

on the command line. So what I need seems to be a test that returns true if passed the above Scheme construct.
I'm not completely sure if that will bring me forward, but I do hope so ...


Best
Urs


Am 10.11.2014 18:47, schrieb Urs Liska:
Hi all,

I'm trying to get the combination of consecutive MultiMeasureRests working but got stuck.

I have the function combineMMRests from
http://lilypond.1069038.n5.nabble.com/new-snippet-combine-multimeasure-rests-td144688.html

which works pretty well usually, but it doesn't merge rests when "something" is between them, even if that "something" is actually "nothing".

Consider the attached files.
Uncommenting one of the lines in the music _expression_ causes either a \barNumberCheck or an empty music function to happen between the two rests, with the result of not merging them properly.

As far as I can see the problem is in the combinable-rest? predicate defined in the .ily file. I assume what I'd want is extending the list of cases where this predicate returns true by some more (currently the barnumber checks and empty music expressions returned by a function. Of course it may be that I'd find more cases in the future, but for now that would be it.

So I think my question is: is there a way to test if a list element is the result of an empty music function?

Thanks for any hints, explanations or improvements.
Urs


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



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

Attachment: empty-function.ly
Description: Text Data


reply via email to

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