[Top][All Lists]
[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
- Re: Rhythmic slashes, (continued)
- Re: Rhythmic slashes, Han-Wen Nienhuys, 2006/11/08
- Re: Rhythmic slashes, Brett Duncan, 2006/11/09
- Re: Rhythmic slashes, Rick Hansen (aka RickH), 2006/11/09
- Re: Rhythmic slashes, Mats Bengtsson, 2006/11/09
- Re: Rhythmic slashes, Rick Hansen (aka RickH), 2006/11/10
- Re: Rhythmic slashes,
Brett Duncan <=