Thanks, that works. It was my first time trying to define a music function
so excuse the noobness. Also, I need to learn
Scheme.
Gonçalo Nogueira
about.me/goncalonogueira


2014-01-29 David Kastrup <d...@gnu.org>

> Gonçalo Nogueira <jgoncalonogue...@gmail.com> writes:
>
> >>
> >> You can try the following:
> >>
> >>
> >>
> >> Note that #LEFT is the same as #-1 and #RIGHT the same as #1 and you can
> >> also use any value in between to get more subtle results.  Or even
> >> beyond the range of -1..1 in order to get less subtle results.
> >>
> >> I apologize for the necessity of using \markup in connection with \tweak
> >> here.  We haven't yet found an amicable compromise avoiding this
> >> nuisance.
> >>
> >> --
> >> David Kastrup
> >>
> >>
> > Is there a way I can define a music function so that I can write
> >
> > \alignLyrics #0.7 syllable
> >
> > The attachment shows what I have tried but is not compiling.
> > alignLyrics =
> > #(define-music-function
> >       (parser location alignment text)
> >       (number? markup?)
> >     #{
> >     \once \override LyricText.self-alignment-X = #alignment \lyricmode {
> #text }
> >     #})
> >
> >
> > \relative c'' {
> >   c8. a16 f4
> > } \addlyrics {
> >   le -- \alignLyrics #0.7 bens -- satt
> > }
>
> Maybe a bit too ambitious regarding the mix and match of markups and
> music (I am not saying that some variant of that should or should not be
> working, but it's not quite clear what and how).  Try the following
> instead:
>
>
>
>
> --
> David Kastrup
>
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to