Re: alignAboveContext problems together with \lyricsto

2006-02-10 Thread Mats Bengtsson

Eduardo Vieira wrote:


Yes it is a great feature. I just used it tonight in transcribing a song. By
the way, I still have a problem with the setting of the lyrics, and for this
reason I attached its file.
Alright, I managed to put the lyrics of the bass above the clef in the
refrain. But I couldn't force it to go further up:
The 3rd system (measure 7) has these lyrics settings:
The four stanzasThe refrain:
(...) His might.
(...) for youTrust in the One (...)
(...) to gain.[I would like to put the words of the bass on
this line, more or less]
(...) the end.
Bass words -  Trust in the One

I guess different lyrics contexts can't overlap, so what should I do? I
tried Lyrics.VerticalAxisGroup #'minimum-Y-extent, but it didn't help.
 


The easiest trick is to simply use the same lyrics context twice.

If you replace your \score section with the following, you will
get the bass words of the refrain exactly on the same line
(since it's the same Lyrics context) as the third verse.

\score {
   \context ChoirStaff
   {  \staffSoprano
  
   \context Lyrics = firstline { \lyricsto melodySop \verseI }
  
   \context Lyrics = secondline { \lyricsto melodySop \verseII }
  
   \context Lyrics = thirdline { \lyricsto melodySop \verseIII }
  
   \context Lyrics = fourthline { \lyricsto melodySop \verse }
  
   \staffTenorSaxophone


   \context Lyrics = thirdline { \lyricsto baixo \basi }
   \context Lyrics = thirdline { \lyricsto chrd  \tebai }
   \context Lyrics = thirdline { \lyricsto baixoii  \basii }
   \context Lyrics = thirdline { \lyricsto chrdii  \tebaii }
  
   
  
   }
  
   \midi {

   }

   \layout  {
  ...
   }
}


Note that I removed some unnecessary \lyricsmode directives.

 /Mats


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: alignAboveContext problems together with \lyricsto

2006-02-10 Thread Eduardo Vieira
Thank you very very much! This solution made me much more enthused about
Lilypond's capabilities.
I thought I'd have to resort to hiding notes or something. Your solution is
much easier.

Eduardo

- Original Message -
From: Mats Bengtsson [EMAIL PROTECTED]
To: Eduardo Vieira [EMAIL PROTECTED]
Cc: lilypond-user@gnu.org
Sent: Friday, February 10, 2006 5:40 PM
Subject: Re: alignAboveContext problems together with \lyricsto


 Eduardo Vieira wrote:

 Yes it is a great feature. I just used it tonight in transcribing a song.
By
 the way, I still have a problem with the setting of the lyrics, and for
this
 reason I attached its file.
 Alright, I managed to put the lyrics of the bass above the clef in the
 refrain. But I couldn't force it to go further up:
 The 3rd system (measure 7) has these lyrics settings:
 The four stanzasThe refrain:
 (...) His might.
 (...) for youTrust in the One (...)
 (...) to gain.[I would like to put the words of the bass
on
 this line, more or less]
 (...) the end.
 Bass words -  Trust in the One
 
 I guess different lyrics contexts can't overlap, so what should I do? I
 tried Lyrics.VerticalAxisGroup #'minimum-Y-extent, but it didn't help.
 
 
 The easiest trick is to simply use the same lyrics context twice.

 If you replace your \score section with the following, you will
 get the bass words of the refrain exactly on the same line
 (since it's the same Lyrics context) as the third verse.

 \score {
 \context ChoirStaff
 {  \staffSoprano

 \context Lyrics = firstline { \lyricsto melodySop \verseI }

 \context Lyrics = secondline { \lyricsto melodySop \verseII }

 \context Lyrics = thirdline { \lyricsto melodySop \verseIII }

 \context Lyrics = fourthline { \lyricsto melodySop
\verse }

 \staffTenorSaxophone

 \context Lyrics = thirdline { \lyricsto baixo \basi }
 \context Lyrics = thirdline { \lyricsto chrd  \tebai }
 \context Lyrics = thirdline { \lyricsto baixoii  \basii }
 \context Lyrics = thirdline { \lyricsto chrdii  \tebaii }

 

 }

 \midi {
 }

 \layout  {
...
 }
 }


 Note that I removed some unnecessary \lyricsmode directives.

   /Mats




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: alignAboveContext problems together with \lyricsto

2006-02-09 Thread Eduardo Vieira
Yes it is a great feature. I just used it tonight in transcribing a song. By
the way, I still have a problem with the setting of the lyrics, and for this
reason I attached its file.
Alright, I managed to put the lyrics of the bass above the clef in the
refrain. But I couldn't force it to go further up:
The 3rd system (measure 7) has these lyrics settings:
The four stanzasThe refrain:
(...) His might.
(...) for youTrust in the One (...)
(...) to gain.[I would like to put the words of the bass on
this line, more or less]
(...) the end.
Bass words -  Trust in the One

I guess different lyrics contexts can't overlap, so what should I do? I
tried Lyrics.VerticalAxisGroup #'minimum-Y-extent, but it didn't help.

I'll be much beholden to you.

Eduardo Vieira

- Original Message -
From: Mats Bengtsson [EMAIL PROTECTED]
To: Lilypond bug bug-lilypond@gnu.org
Sent: Thursday, February 09, 2006 2:01 PM
Subject: alignAboveContext problems together with \lyricsto


 Hi,

 I just realized that there is a problem with setting alignAboveContext
 within a lyrics context if the corresponding lyrics doesn't start at the
 top of the score. Example:

 \version 2.6.0
 \score{
 
   \context Staff = mystave 
 \context Voice = melody {
\relative c' { c
   {\voiceOne c'} \context Voice = splitpart {\voiceTwo c,8 e} 
 }
  }
  \context Voice = splitpart {s1 * 2} % Doesn't help!
   
 \new Lyrics \lyricsto melody { \set alignAboveContext = #mystave
 Text above  }
 \new Lyrics \lyricsto splitpart { \set alignAboveContext = #mystave
 not above }
  
 }

 The problem is that also the \set directive seems to happen at the same
 place as the
 first syllable, which is too late. A workaround, of course, is to use
\with:

 \version 2.6.0
 \score{
 
   \context Staff = mystave 
 \context Voice = melody {
\relative c' { c
   {\voiceOne c'} \context Voice = splitpart {\voiceTwo c,8 e} 
 }
  }
  \context Voice = splitpart {s1 * 2} % Doesn't help!
   
 \new Lyrics \with {alignAboveContext = #mystave } \lyricsto melody
 {  Text above  }
 \new Lyrics \with {alignAboveContext = #mystave } \lyricsto
 splitpart { also above }
  
 }


 The problem is the same in version 2.6 and 2.7.

/Mats

 --
 =
 Mats Bengtsson
 Signal Processing
 Signals, Sensors and Systems
 Royal Institute of Technology
 SE-100 44  STOCKHOLM
 Sweden
 Phone: (+46) 8 790 8463
 Fax:   (+46) 8 790 7260
 Email: [EMAIL PROTECTED]
 WWW: http://www.s3.kth.se/~mabe
 =



 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 http://lists.gnu.org/mailman/listinfo/bug-lilypond

% Created on Fri Feb 03 20:21:54 BRST 2006
\version 2.7.30

#(set-global-staff-size 16)

\header {
	title = Trust in the Lord
	poet = Paul W. Cook, b. 1907
	composer = George W. Blackwell, b. 1904
	copyright = Property of Geo. W. Blackwell  Paul W. Cook, 1930. Used by permission
}

\include english.ly

verseI= \lyricmode {
	\set stanza = 1.	
Trust in the Lord, What priv -- i -- lege giv -- en!
O in this world fail not to live right; 
Stand by His word with hope and de -- ci -- sion,
God will not leave you, trust in His might.
}
 
verseII= \lyricmode {
	\set stanza = 2.	
Trust in the Lord; for -- get not His prom -- ise,
Heav -- en will pass ere it prove un -- true; 
Sing mid your tri -- als, have faith in Je -- sus,
Trust in His grace suf -- fi -- cient for you.
Trust in the One who nev -- er will fail you,
On Him re -- ly, He's faith -- ful to you;
O do not fal -- ter, stay on the al -- tar,
An -- chor your soul in Him that is true.
}
 
verseIII= \lyricmode {
	\set stanza = 3.	
Trust in the Lord when you are in trou -- ble,
When in your life come sor -- row and pain,
God is un -- fail -- ing, dai -- ly He'll help you,
O -- ver your foes the vic  -- t'ry to gain.
}
 
verse= \lyricmode {
	\set stanza = 4.	
Trust in the Lord, how sweet the ex -- pe -- rience,
If in this life we on Him de -- pend; 
Fit -- ted for ser -- vice; rea -- dy for judg -- ment,
So let us live and trust to the end.
}

basi = \lyricmode { Trust in the One who nev -- er will fail you,
On Him re -- ly, He's }

tebai = \lyricmode { faith -- ful to you; }

basii = \lyricmode { O do not fal -- ter, stay on the al -- tar,
An -- chor your soul in }

tebaii = \lyricmode { Him that is true. }
	


staffSoprano = \new Staff  {
	\time 9/8
	\set Staff.midiInstrument=choir aahs
	\set Staff.shapeNoteStyles = ##(do re mi fa #f la ti)
	\key c \major
	\clef treble
	\context Voice = melodySop { 
	\relative c'' {	\autoBeamOff \partial 8*3  g e 8  fs ds   g e 	 e c 4. 
	 e g 4.  c' e, 8  d e,   c e,   c f,4. a f c f,8 b f
	a f g e4.  c e,4.
	%%% 1st syst
	e g,8 d g, c g   \new Voice { \voiceOne d2.}  {\voiceTwo g,4.( f4.) } 
	\oneVoice  g e 8  fs ds   g e  
	 e c 4. g e c e,8 d f,8 e g