lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing alignment of lyrics at the beginning of a new system


From: Dmytro O. Redchuk
Subject: Re: Changing alignment of lyrics at the beginning of a new system
Date: Tue, 26 Aug 2008 16:17:03 +0300

2008/8/23 Eduardo Vieira da Silva <address@hidden>:
>
> Anyone takes the challenge? Sorry but I have no Scheme knowledge. I'm trying 
> to get a grasp of Python first...
Noone took, so i'll try post my thouths.

After reading "6.7.2 Difficult tweaks"  in NR i have tried the following:

% ------------------- CUT

#(define (my-callback grob)
        (ly:grob-set-property! grob 'self-alignment-X '-1)
        ; (ly:grob-set-property! grob 'extra-offset '(4 . 4))
)

melody = \relative c'' {
        c d e f
        e d c b
        a g a b
        c b a b
}

lyr = \lyricmode {
        dodo rere mimi fafa
        mimi rere dodo sisi
        lala solsol lala sisi
        dodo sisi lala sisi
}

\score {
        \new Staff <<
                \new Voice = "voice" {
                        \melody
                }
                \new Lyrics \with {
                        \override LyricText #'after-line-breaking = #my-callback
                } \lyricsto "voice" \lyr
        >>
}

\paper {
        indent = 0
        line-width = 5.5\cm
}

% ------------------- CUT

No success; extra-offset works, self-alignment-X doesn't.

So, the questions
  a) why (ly:grob-set-property! grob 'self-alignment-X '-1) does not work?
  b) is it possible to ly:grob-set-property! only "\once"?

>
> Eduardo Vieira

-- 
Dmytro O. Redchuk




reply via email to

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