lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rhythmic slashes


From: Brett Duncan
Subject: Re: Rhythmic slashes
Date: Sat, 11 Nov 2006 14:53:19 +1100
User-agent: Thunderbird 1.5.0.8 (Macintosh/20061025)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]