bug-lilypond
[Top][All Lists]
Advanced

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

Re: whole page rotated


From: Thomas Morley
Subject: Re: whole page rotated
Date: Tue, 4 Mar 2014 20:05:32 +0100

2014-03-04 19:19 GMT+01:00 Karol Majewski <address@hidden>:
> Hi,
>
> In the following code, I want to rotate custom note head. To my suprise, this 
> code makes the whole page rotated if there is a line break. What I'm I doing 
> wrong?
>
> #(define nhg
> (lambda (grob)
>   (if
>     (= 2
>       (ly:grob-property grob 'duration-log))
>     (begin
>       (let*
>         ((stem
>             (ly:grob-object grob 'stem))
>           (stem-dir
>             (ly:grob-property stem 'direction))
>           (rot
>             (if
>               (= stem-dir 1) 0 180)))
>         (ly:grob-set-property! grob 'stencil
>           (grob-interpret-markup grob
>             (markup #:rotate rot #:musicglyph "noteheads.u2doThin"))))))))
>
> \layout {
>   \context {
>     \Staff
>     \override NoteHead.stencil = #nhg
>   }
> }
>
> {
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
>   c''4 c''4 c''4 c''4
> }
>
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Karol,

I've no idea what happens here.
Below a tiny code triggering the same bug.
It's present as far as I can go back, i.e. 2.12.3 up to 2.19.1

{
  \override NoteHead #'rotation = #'(180 0 0)
  \repeat unfold 80 c''4
}

I cc-ed the bug-list.

Cheers,
  Harm



reply via email to

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