\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


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

Reply via email to