On 6/15/10 10:05 PM, Kieren MacMillan wrote:
Hi Richie,

\skip and s consume score time, but both print some horizontal space.
How can I insert an invisible rest that does not take horizontal space?
I searched the manuals and snippet repository, but no clue...

Use

   r4*0

You may have to put

   \once \override Rest #'X-extent = #'(0 . 0)

or

   \once \override Rest #'extra-spacing-width = #'(+inf.0 . -inf.0)

to eliminate any space.


Thank you. That triggered the right solution. r4*0 does not work. The rest collides with the following note. But, s4*0 works for me. And that is exactly what I need. I have around 1000 melodies in which partial measures were solved by inserting invisible rests (s) instead of using \partial. With this solution it is relatively easy to write a script to add *0 to all those invisible rests in order to get visually satisfying scores.

Thanks again!

Peter


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to