lilypond-user
[Top][All Lists]
Advanced

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

Re: Syllable count


From: David Kastrup
Subject: Re: Syllable count
Date: Thu, 08 Mar 2018 13:53:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2018-02-19 22:38 GMT+01:00 John Schlomann <address@hidden>:
>> Dear LilyPond experts,
>>
>>
>>
>> Given a definition of some lyrics, such as
>>
>>
>>
>>   lyr = \lyricmode { Here some lyr -- ics }
>>
>>
>>
>> Is there any way to get a count of the syllables, in this case 4?
>
> #(display-scheme-music (length (ly:music-property lyr 'elements)))

It's also worth pointing out that lyrics entered without durations
consist of elements all of the same duration.  So if you calculate the
music-length and divide by the length of the first element with a
duration, you get a syllable count that is robust against overrides,
parallel music and similar stuff.  Of course it will still not heed
melismata.

-- 
David Kastrup



reply via email to

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