-"Convert all stuff with duration (notes, lyrics, bass figures, etc.) to skips.
-Scripts and dynamics are maintained.
-"
- (if (memq 'rhythmic-event (ly:get-mus-property m 'types))
- (let* ((newmus (make-music-by-name 'SkipEvent)))
- (map
- (lambda (x) (ly:set-mus-property! newmus (car x) (cdr x)))
- (ly:get-mutable-properties m))
- newmus
- )
- m)
-)
-
-
- \paper { raggedright= ##t }
-
-foobar = \notes \transpose c c' { c4\>-^ c4-^ c4\!-^ c4-^ }
-
-\score {
- \notes \relative c'' \context Voice {
- \foobar
-
- << \apply #(lambda (x) (music-map notes-to-skip x))
- \foobar
- { d2 d2 } >>
-}}
+ "Convert all stuff with duration (notes, lyrics, bass figures, etc.) to skips.
+Scripts and dynamics are maintained."
+ (if (music-is-of-type? m 'rhythmic-event)
+ (make-music 'SkipEvent m)
+ m))
+
+
+\layout { ragged-right= ##t }
+
+foobar = \transpose c c' { c4\>-^ c4-^ c4\!-^ c4-^ }
+
+
+\relative c'' \context Voice {
+ \foobar
+
+ << \applyMusic #(lambda (x) (music-map notes-to-skip x))
+ \foobar
+ { d8 d d d d d d d } >>
+}