Re: moving backwards in time ?
On Thursday 12 January 2006 23.36, Gilles wrote: I can't seem to figure out how to slightly change the structure to make it work :-{ I tried with \addlyrics but it shows only one line of the caption instead of one for each transposed part... Several \addlyrics produce the same problem as \lyricsto. Any hint? Is this what you had in mind? %---cut--- \version 2.6.3 theNotes = \relative c' { \key d \aeolian \cadenzaOn d4 e f g a bes cis d c bes a g f ees d \bar | d f a2 g bes d a cis e \bar || \cadenzaOff } text = \lyricmode { 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V } modeOnD = { \theNotes } theMusic = \context Staff = Mode \with { \remove Time_signature_engraver } { \context Voice = notes { \transpose d d { \modeOnD } \break \transpose d c { \modeOnD } } \lyricsto notes \new Lyrics { \text } } \score { \theMusic \layout {} } %---cut--- It works, but is a real pain because one has to had as many lines of exactly the same text as there are going to be transposed parts. Furthermore, in the original file setup, the notes (scale) are defined in one file (together with the text) and the \score in another. Is ther some way (given the current limitation of \lyricsto) to keep this separation between data and presentation? Well, you can put the first half of the text in a variable, and repeat that variable twice, as I suggested in my other mail: text = \lyricmode { 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V } [...] theLyrics = \context Lyrics = text { \text \text } -- Erik ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: moving backwards in time ?
On Saturday 07 January 2006 15.43, Gilles wrote: Hello. I'm confused by the output of the attached file: lilypond creates an empty bar. [And generates a programming error.] And the clef change indicator is pushed to the next line. Without the addition of the second \transpose part, the output is as expected. Also, if the \lyricsto line is commented out, it comes out fine. Should I do this in another way or is it a bug? This is a known bug (or limitation). You should not use \lyricsto sequentially, that will sometimes produce weird results. It is always possible to do the two part using a single \lyricsto command, which contains the two sequential parts; however, you will need to change the structure of the .ly file slightly. -- Erik ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: moving backwards in time ?
Hello. I'm confused by the output of the attached file: lilypond creates an empty bar. [And generates a programming error.] And the clef change indicator is pushed to the next line. Without the addition of the second \transpose part, the output is as expected. Also, if the \lyricsto line is commented out, it comes out fine. Should I do this in another way or is it a bug? This is a known bug (or limitation). You should not use \lyricsto sequentially, that will sometimes produce weird results. It is always possible to do the two part using a single \lyricsto command, which contains the two sequential parts; however, you will need to change the structure of the .ly file slightly. I can't seem to figure out how to slightly change the structure to make it work :-{ I tried with \addlyrics but it shows only one line of the caption instead of one for each transposed part... Several \addlyrics produce the same problem as \lyricsto. Any hint? Best regards, Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: moving backwards in time ?
I can't seem to figure out how to slightly change the structure to make it work :-{ I tried with \addlyrics but it shows only one line of the caption instead of one for each transposed part... Several \addlyrics produce the same problem as \lyricsto. Any hint? Is this what you had in mind? %---cut--- \version 2.6.3 theNotes = \relative c' { \key d \aeolian \cadenzaOn d4 e f g a bes cis d c bes a g f ees d \bar | d f a2 g bes d a cis e \bar || \cadenzaOff } text = \lyricmode { 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V } modeOnD = { \theNotes } theMusic = \context Staff = Mode \with { \remove Time_signature_engraver } { \context Voice = notes { \transpose d d { \modeOnD } \break \transpose d c { \modeOnD } } \lyricsto notes \new Lyrics { \text } } \score { \theMusic \layout {} } %---cut--- It works, but is a real pain because one has to had as many lines of exactly the same text as there are going to be transposed parts. Furthermore, in the original file setup, the notes (scale) are defined in one file (together with the text) and the \score in another. Is ther some way (given the current limitation of \lyricsto) to keep this separation between data and presentation? Thanks, Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: moving backwards in time ?
On Thursday 12 January 2006 19.19, Gilles wrote: Hello. I'm confused by the output of the attached file: lilypond creates an empty bar. [And generates a programming error.] And the clef change indicator is pushed to the next line. Without the addition of the second \transpose part, the output is as expected. Also, if the \lyricsto line is commented out, it comes out fine. Should I do this in another way or is it a bug? This is a known bug (or limitation). You should not use \lyricsto sequentially, that will sometimes produce weird results. It is always possible to do the two part using a single \lyricsto command, which contains the two sequential parts; however, you will need to change the structure of the .ly file slightly. I can't seem to figure out how to slightly change the structure to make it work :-{ I tried with \addlyrics but it shows only one line of the caption instead of one for each transposed part... Several \addlyrics produce the same problem as \lyricsto. Any hint? Perhaps something like this can work? modeOnD = \context Voice = notes { \theNotes } theLyrics = \context Lyrics = text { \text \text } theStaff = \context Staff = Mode \with { \remove Time_signature_engraver } { \transpose d d { \modeOnD } \break \transpose d c { \modeOnD } } theMusic = \theStaff \lyricsto notes \theLyrics -- Erik ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
moving backwards in time ?
Hello. I'm confused by the output of the attached file: lilypond creates an empty bar. [And generates a programming error.] And the clef change indicator is pushed to the next line. Without the addition of the second \transpose part, the output is as expected. Also, if the \lyricsto line is commented out, it comes out fine. Should I do this in another way or is it a bug? Further experiment would seem to indicate it is related to the cadenza commands: - When removing both \cadenzaOn and \cadenzaOff, a second empty bar appears (after the second, transposed, part). - When removing only \cadenzaOff, the second part disappears altogether! Thanks, Gilles \version 2.6.3 theNotes = \relative c' { \key d \aeolian \cadenzaOn d4 e f g a bes cis d c bes a g f ees d \bar | d f a2 g bes d a cis e \bar || % \cadenzaOff } text = \lyricmode { 1 2 3 4 5 6 7 8 _ _ _ _ _ _ _ I IV V } modeOnD = \context Voice = notes { \theNotes } \lyricsto notes \context Lyrics = text { \text } theMusic = \context Staff = Mode \with { \remove Time_signature_engraver } { \transpose d d { \modeOnD } \break \transpose d c { \modeOnD } } \score { \theMusic \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user