Additional staff with lyrics

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Additional staff with lyrics

Bernhard Kleine

In http://lilypond.org/doc/v2.19/Documentation/learning/size-of-objects

there is this example which helped me already to add the extra Staff to the piece I presented yesterday, however I do not see a way to add lyrics to the  upper staff. Could you please help?


\new Staff ="main" {
  \relative {
    r4 g'8 g c4 c8 d |
    e4 r8
    <<
      { f8 c c }
      \new Staff \with {
        alignAboveContext = #"main" }
      { f8 f c }
    >>
    r4 |
  }
}

[image of music]

-- 
spitzhalde9
D-79853 lenzkirch
[hidden email]
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

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

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Additional staff with lyrics

Thomas Morley-2
2017-05-29 11:43 GMT+02:00 Bernhard Kleine <[hidden email]>:

>
> In http://lilypond.org/doc/v2.19/Documentation/learning/size-of-objects
>
> there is this example which helped me already to add the extra Staff to the piece I presented yesterday, however I do not see a way to add lyrics to the  upper staff. Could you please help?
>
>
> \new Staff ="main" {
>   \relative {
>     r4 g'8 g c4 c8 d |
>     e4 r8
>     <<
>       { f8 c c }
>       \new Staff \with {
>         alignAboveContext = #"main" }
>       { f8 f c }
>     >>
>     r4 |
>   }
> }

How about:

\version "2.19.56"

\new Staff ="main" {
  \relative {
    r4 g'8 g c4 c8 d |
    e4 r8
    <<
      { f8 c c }
      \new Staff \with { alignAboveContext = #"main" }
      { f8 f c }
      \addlyrics \with { alignAboveContext = #"main" } { foo bar buzz }
    >>
    r4 |
  }
}

HTH,
  Harm

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Additional staff with lyrics

Jan-Peter Voigt
... or

\new Staff ="main" {
   \relative {
     r4 g'8 g c4 c8 d |
     e4 r8
     <<
       { f8 c c }
       \new Staff = "extra" \with { alignAboveContext = #"main" }
       { f8 f c }
       \addlyrics \with { alignBelowContext = #"extra" } { foo bar buzz }
     >>
     r4 |
   }
}

HTH,
Jan-Peter

Am 29.05.2017 um 11:50 schrieb Thomas Morley:

> 2017-05-29 11:43 GMT+02:00 Bernhard Kleine <[hidden email]>:
>>
>> In http://lilypond.org/doc/v2.19/Documentation/learning/size-of-objects
>>
>> there is this example which helped me already to add the extra Staff to the piece I presented yesterday, however I do not see a way to add lyrics to the  upper staff. Could you please help?
>>
>>
>> \new Staff ="main" {
>>    \relative {
>>      r4 g'8 g c4 c8 d |
>>      e4 r8
>>      <<
>>        { f8 c c }
>>        \new Staff \with {
>>          alignAboveContext = #"main" }
>>        { f8 f c }
>>      >>
>>      r4 |
>>    }
>> }
>
> How about:
>
> \version "2.19.56"
>
> \new Staff ="main" {
>    \relative {
>      r4 g'8 g c4 c8 d |
>      e4 r8
>      <<
>        { f8 c c }
>        \new Staff \with { alignAboveContext = #"main" }
>        { f8 f c }
>        \addlyrics \with { alignAboveContext = #"main" } { foo bar buzz }
>      >>
>      r4 |
>    }
> }
>
> HTH,
>    Harm
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


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