lilypond-user
[Top][All Lists]
Advanced

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

Re: scale notehead X and Y independently


From: Tim Sheasby
Subject: Re: scale notehead X and Y independently
Date: Wed, 16 Mar 2011 21:32:06 +0200

Sorry, it's taken me a while to get back to this. This works fine but how do I 
apply it to a specific note in a \set shapeNoteStyles context. Tried the 
following for example but not working.

---------------------------8<-----------------------------------------
miNarrow = {
        \musicglyph #"noteheads.s1mi"
        #(lambda (grob) (ly:stencil-scale
                (ly:note-head::print grob) 0.95 1.05))
}

aikenHeads = {
        \set shapeNoteStyles = #'#(do re miNarrow fa sol la ti)
}

\key c
\relative c' {
\aikenHeads
<c e>4
<c e>4
}
---------------------------8<-----------------------------------------

On 27 Feb 2011, at 12:53 AM, Robin Bannister wrote:

> Tim Sheasby wrote:
>> Can a notehead be scaled by different factors in the x and y directions?
>    In the recent development versions (starting with 2.13.38) you can. The 
> following snippet uses an X-factor of 2:
>    wideNH = #(lambda (grob) (ly:stencil-scale (ly:note-head::print grob) 2 1))
> 
> {
> b'4 g'4  \override NoteHead #'stencil = #wideNH
> b'4 g'4
> }
>    Cheers, Robin
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user

Tim Sheasby
address@hidden


JPEG image



reply via email to

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