>
> >
> > I have a "dirty solution" for this percent ( slashes )
> >
> > \override Stem #'length = #0.0
> > #'thickness = #0.0
> > b4 b4 b4
> > \override Stem #'length = #7.0
> > \override Stem #'thickness = #1.3
> >
> >
> > Looks good on "original sheet" but pretty ugly on the transposed ones.
>


Someone else suggested this approach, which I've been using happily, so I'd
like to pass it on.

The concept is that, since rests don't move when you transpose a part, you
specify rests instead of notes, and change the appearance of the rests to a
slash.

This avoids having to do any fussing with anything at all.


% Macro to print single slash
rs = {
  \once \override Rest #'stencil =
#ly:percent-repeat-item-interface::beat-slash
  \once \override Rest #'thickness = #0.48
  \once \override Rest #'slope = #1.7
  r4
}

% Function to print a specified number of slashes
comp = #(define-music-function (parser location count) ( integer?)
  #{
    \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
    \override Rest #'thickness = #0.48
    \override Rest #'slope = #1.7
    \repeat unfold $count { r4 }
    \revert Rest #'stencil
  #}
)

% Example use of slashes:
\score {
  \relative c' {
    c4 d e f |
    \rs \rs \rs \rs |
    \comp #4 |
  }
}



HTH,

David Elaine Alt
415 . 341 .4954                                           "*Confusion is
highly underrated*"
[email protected]
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to