Simon Albrecht <[email protected]> writes:

> On 03.12.2015 07:32, David Kastrup wrote:
>> tisimst<[email protected]>  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

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

Reply via email to