Joseph Chrestien <_...@live.com> writes: > Hi all, > > is it possible to change all notes in a voice to skips through a function ? > > E.g. ` \silence c4 \tempo 4=100 f8\p g8 ` would be compiled as ` s4 \tempo > 4=100 s8\p s8 `. Note all other events would stay the same.
\version "2.19.32" silence = #(define-music-function (arg) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? m 'note-event) (make-music 'SkipEvent m))) arg)) \displayLilyMusic \silence { c4 \tempo 4=100 f8\p g8 } For version 2.18 you'll likely have to write (parser location arg) instead of just (arg) but I think the rest would work fine. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user