Not sure this is all helpful but any value between 135 and 235 is
causing the whole page to rotate.

On Tue, Mar 4, 2014 at 2:05 PM, Thomas Morley <[email protected]> wrote:
> 2014-03-04 19:19 GMT+01:00 Karol Majewski <[email protected]>:
>> 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
>> [email protected]
>> 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
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to