lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertically centering a song text.


From: David Kastrup
Subject: Re: Vertically centering a song text.
Date: Thu, 03 Dec 2015 12:56:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> On 03.12.2015 07:32, David Kastrup wrote:
>> tisimst<address@hidden>  writes:
>>
>>> >\skip in the Lyrics context is necessary for skipping beats without
>>> >creating a melisma (which can be manually created with a single underscore
>>> >for each beat in the melisma). I'm not sure why it's insensitive to the
>>> >number after it. I have wondered the same thing, but that's the way it
>>> >works at the moment.
>> Because the whole point of \addlyrics/\lyricsto is to ignore durations
>> and instead take items one-by-one irrespective of their length?
>>
>
> One _might_ do
>
> %%%%%%%%%%%
> \version "2.19.32"
>
> % modified from ly/music-functions-init.ly
> skip =
> #(define-music-function (dur) ((ly:duration? (ly:make-duration 2)))
>   (_i "Skip forward by @var{dur}.")
>   (make-music 'SkipMusic
>               'duration dur))
>
> <<
>   { 4 2 4 }
>   \addlyrics { test \skip \default test }
>>>
> %%%%%%%%%%%
>
> but it doesn’t make much of a difference. (It would if \skip\default
> would inherit a duration just like a note with implicit duration; is
> that possible via make-music?)

I consider it likely that

skip =
#(define-music-function (dur) ((ly:duration?))
  (_i "Skip forward by @var{dur}.")
  (make-music 'SkipMusic
              'duration (or dur (ly:music-property #{ s #} 'duration))))

would do something like that, but it seems like a really bad idea.

-- 
David Kastrup



reply via email to

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