On 22 November 2010 12:37, TaoCG <tao_lilypondu...@gmx.net> wrote: > And since the slashes are Rests they get removed as well. > Is there a simple trick to keep specific measures with rests alive?
You can create a slash directly, instead of hacking a Rest stencil: slash = #(define-music-function (parser location note) (ly:music?) "Make a beat slash with the same duration as note." (make-music 'PercentEvent 'length (ly:music-length note))) % Macro to print single slash rs = { \slash s4 } % Function to print a specified number of slashes comp = #(define-music-function (parser location count) (integer?) #{ \repeat unfold $count { \slash s4 } #}) Cheers, Neil _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user