lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond hangs on a script after adding fingering


From: Thomas Morley
Subject: Re: Lilypond hangs on a script after adding fingering
Date: Sat, 31 Dec 2011 21:22:30 +0100

2011/12/31 gajatko <address@hidden>:
> Robin Bannister wrote:
> gajatko wrote: > in future I will also need numbers like 9,11,13 etc. Check
> out LSR 756 http://lsr.dsi.unimi.it/LSR/Item?id=756 and some context
> http://lists.gnu.org/archive/html/lilypond-user/2011-03/msg00138.html
> Cheers, Robin
>
> Thank you, it does most of work. Unfortunately, it completely ignores the
>
> \set fingeringOrientations = #'(right)
>
> This a code I am using:
>
> ten =
> #(make-music 'FingeringEvent
>              'digit 10)
>
> fifty =
> #(make-music 'FingeringEvent
>              'digit 50)
>
> finger =
> #(define-music-function (parser location digit) (integer?)
>    (make-music 'FingeringEvent
>                'digit digit))
>
> #(define (calc-finger-without-warning grob)
>    (let* ((event (event-cause grob))
>         (digit (ly:event-property event 'digit)))
>      (number->string digit 10)))
>
> \relative c' {
>   % optional override to remove warnings for fingerings larger than 5
>   \override Fingering #'text = #calc-finger-without-warning
>  \set fingeringOrientations = #'(right)
>   c1\ten
>   c1\fifty
>   c1-\finger #36
>   c1-\finger #29
> }
>
> Greetings
> ________________________________
> View this message in context: Re: Lilypond hangs on a script after adding
> fingering

You forgot < >

Try:

\relative c' {
        \set fingeringOrientations = #'(right)
  % optional override to remove warnings for fingerings larger than 5
  \override Fingering #'text = #calc-finger-without-warning
  <c\ten>1
  <c\fifty>
  <c-\finger #36 > % note the space after the number
  <c-\finger #29 >
}

HTH,
  Harm



reply via email to

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