Rick Hansen (aka RickH) wrote:
Mats,
This is sort of working, but how would I set the thickness property so that
the slash looks more like the "slash" notehead? Better yet, is there a way
to actually use the slashed note head character instead? (the slashed note
head looks like most fakebooks, but this beat-slash is too thick and it
bumps into the right measure bar. Other than that it's working well.
thanks
Rick
I found this works:
\override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
\override Rest #'thickness = #'0.48
\override Rest #'slope = #'1.7
What I'm wondering now is how to define a function that lets you input a
number and produces the slash for that number of beats.
I tried
comp = #(define-music-function (parser location x) ( integer?)
#{
\override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
\override Rest #'thickness = #'0.48
\override Rest #'slope = #'1.7
\repeat unfold $x { r4 }
\revert Rest #'stencil
#})
but I'm making a mistake somewhere, as I get this error message:
syntax error, unexpected NUMBER_IDENTIFIER, expecting DIGIT or UNSIGNED
pointing to the $x just after unfold.
Brett
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user