Re: Left align first word of lyrics

2015-12-29 Thread Stephen
Wilbert Berendsen xs4all.nl> writes: > It is complicated just now to paste the code how we did it, because > everything is so intermingled, but I'll show it later on in a nice > writeup. We wrote many functions that read custom variables from the > paper or layout blocks (using

Re: Left align first word of lyrics

2013-05-27 Thread Wilbert Berendsen
Op Sun, 19 May 2013 03:11:12 +0200 (CEST) Gregory Heytings g...@sdf.org schreef: Hi list, Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal

Re: Left align first word of lyrics

2013-05-23 Thread Carl Peterson
David, This is amazing. I was able to drop this into my own project without any trouble except changing the lyrics context command to reflect me using 2.16 instead of 2.17. Kudos. Cheers, Carl On Wed, May 22, 2013 at 1:06 PM, David Nalesnik david.nales...@gmail.comwrote: Well, comparing the

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Hi On Tue, May 21, 2013 at 8:41 PM, David Nalesnik david.nales...@gmail.comwrote: Hi Gregory, Here's another version which will automatically find the longest syllable. You can tag any one of the lyric syllables at a given timestep. Noticed a problem. Corrected file attached. --David

Re: Left align first word of lyrics

2013-05-22 Thread Carl Peterson
I'm not in a position to test this at the moment, but just for confirmation, will this work with an arbitrary number of tagged syllables through a Lyrics context? ex: tagIt = \once \override Lyrics.LyricText #'tagged = ##t \new Lyrics \lyricsto A { \tagIt This is the first phrase in my

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Hi Carl, On Wed, May 22, 2013 at 10:36 AM, Carl Peterson carlopeter...@gmail.comwrote: I'm not in a position to test this at the moment, but just for confirmation, will this work with an arbitrary number of tagged syllables through a Lyrics context? ex: tagIt = \once \override

Re: Left align first word of lyrics

2013-05-22 Thread David Nalesnik
Well, comparing the lengths of strings is a bit shortsighted, as all four-letter words don't occupy the same space... Revised to work with stencil sizes, as David Kastrup suggests earlier in this thread. Argh. lyrics-alignment2.ly Description: Binary data

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal for the first word of a staff. For example, the words Ccc, Cc and C are centered under the

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings g...@sdf.org writes: l=\once \override LyricText #'self-alignment-X = #-1 \score { \new Staff \new Voice = A { \relative c' { c d e f } } \new Lyrics \lyricsto A { \l Ccc ddd eee fff } \new Lyrics \lyricsto A { \l Cc dd ee ff } \new Lyrics \lyricsto A { \l C

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
Indeed, many thanks, I did not expect that the solution would be so trivial. I tried with various values of self-alignment-X, but not with -1... -1 is the same as LEFT Okay, I did not read the manual carefully enough (again). I know and see that you put much effort in it, but please

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings g...@sdf.org writes: Indeed, many thanks, I did not expect that the solution would be so trivial. I tried with various values of self-alignment-X, but not with -1... -1 is the same as LEFT Okay, I did not read the manual carefully enough (again). That was just intended

Re: Left align first word of lyrics

2013-05-21 Thread Gregory Heytings
So the lyrics are supposed to be aligned as a block first which is then centered on the note. Exactly. I think that the current machinery is rather working by aligning everything independently to the note in question. Indeed. That would place the prealignment of the lyrics into

Re: Left align first word of lyrics

2013-05-21 Thread David Kastrup
Gregory Heytings g...@sdf.org writes: A tedious solution is likely doable where you basically specify something like \syllable #1 { Cccc C Cc Ccc c } in the first stanza, \syllable #2 { Cccc C Cc Ccc c } in the second stanza and so on: then each stanza would typeset the whole

Re: Left align first word of lyrics

2013-05-21 Thread Kieren MacMillan
Hi Gregory, A tedious solution is likely doable where you basically specify something like \syllable #1 { Cccc C Cc Ccc c } in the first stanza, \syllable #2 { Cccc C Cc Ccc c } in the second stanza and so on: then each stanza would typeset the whole column, align it, and

Re: Left align first word of lyrics

2013-05-21 Thread Carl Peterson
Just thinking about some of the stuff I've been working on. Would it be possible to pass the lyrics to Scheme as a list of lists (a list of verses, with each verse a list of words), so that for each syllable placement it could look at the nth item of each list and determine correct placement.

Re: Left align first word of lyrics

2013-05-21 Thread Kieren MacMillan
Hi Carl, Would it be possible to pass the lyrics to Scheme as a list of lists (a list of verses, with each verse a list of words), so that for each syllable placement it could look at the nth item of each list and determine correct placement. This may require some manual line breaking

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi Kieren, On Tue, May 21, 2013 at 10:34 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: But of course it would be far better for this to be an #'after-line-breaking callback (or whatever), to optionally override the alignment of the first syllable on each line. Unfortunately,

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi, On Tue, May 21, 2013 at 4:32 AM, Gregory Heytings g...@sdf.org wrote: What should the lyrics be left-aligned to then if not to the note? To each other. This would give something like: o Cccc C Cc Ccc c with the note on the first line, and the lyrics on the five next

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
On Tue, May 21, 2013 at 4:27 PM, David Nalesnik david.nales...@gmail.comwrote: Basically, the idea is that you tag the syllable you want the column to left-align to by overriding an invented property which I called `tagged' for lack of any inspiration. On a side note: I think it could

Re: Left align first word of lyrics

2013-05-21 Thread David Nalesnik
Hi Gregory, Here's another version which will automatically find the longest syllable. You can tag any one of the lyric syllables at a given timestep. HTH, David lyrics-alignment2.ly Description: Binary data ___ lilypond-user mailing list

Re: Left align first word of lyrics

2013-05-19 Thread Phil Holmes
- Original Message - From: Gregory Heytings g...@sdf.org To: lilypond-user@gnu.org Sent: Sunday, May 19, 2013 2:11 AM Subject: Left align first word of lyrics Hi list, Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all

Left align first word of lyrics

2013-05-18 Thread Gregory Heytings
Hi list, Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal for the first word of a staff. For example, the words Ccc, Cc and C are centered