lilypond-user
[Top][All Lists]
Advanced

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

Re: Suppress command (\arpeggio) in music variable


From: David Nalesnik
Subject: Re: Suppress command (\arpeggio) in music variable
Date: Thu, 25 Dec 2014 10:37:35 -0600

Hi,

On Thu, Dec 25, 2014 at 10:01 AM, Ted Lemon <address@hidden> wrote:
On Dec 25, 2014, at 10:50 AM, Kieren MacMillan <address@hidden> wrote:
>   \override Arpeggio.stencil = ##f \barsSixToEight \revert Arpeggio.stencil

This will prevent it showing up in the output, but it'll still show up in the midi, won't it?


This should do the trick then:

 \version "2.19.15"

rem =
#(define-music-function (parser location mus)
   (ly:music?)
   (music-filter
    (lambda (x) (not (music-is-of-type? x 'arpeggio-event)))
      mus))


music = {
  <c e g c>1\arpeggio
  <c e g c>1\arpeggio
}

\score {
  \new Staff {
    \rem \music
  }
}

HTH,
David


reply via email to

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