lilypond-user
[Top][All Lists]
Advanced

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

Re: Turning off visible dynamics on lower piano staff


From: Gilles THIBAULT
Subject: Re: Turning off visible dynamics on lower piano staff
Date: Mon, 21 Feb 2011 23:22:07 +0100


\score {
   \new PianoStaff {
       <<
           \new Staff { d'2\p f'4 g'\f }
\new Staff \with { \remove Dynamic_engraver } { b4\f g\ff a2\p }
       >>
   }
}

it doesn't do anything at all, and i have no idea why.
Anyone?

No ideas for that.
But here is just a little function that i have already used.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

deleteDynamics = #(define-music-function (parser location music) (ly:music?)
(music-filter
 (lambda (evt)
  (not (memq (ly:music-property evt 'name) (list
      'AbsoluteDynamicEvent
      'CrescendoEvent
      'DecrescendoEvent))))
    music))

\score {
   \new PianoStaff {
       <<
           \new Staff { d'2\p f'4 g'\f }
           \new Staff \deleteDynamics { b4\f g\ff a2\p }
       >>
   }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Gilles




reply via email to

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