[Top][All Lists]

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

Re: Remove empty staves from PianoStaff

From: Neil Puttock
Subject: Re: Remove empty staves from PianoStaff
Date: Tue, 23 Nov 2010 22:38:32 +0000

On 22 November 2010 12:37, TaoCG <address@hidden> 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 }


reply via email to

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