|
From: | James Bailey |
Subject: | Re: alignAboveContext - don't know what I don't understand |
Date: | Mon, 31 May 2010 23:10:54 +0200 |
I don't know which you used as your source, but the easiest to understand how this works is the section on nesting music expressions in the Learning Manual: \new Staff = "main" { \relative g' { r4 g8 g c4 c8 d | e4 r8 << { f8 c c } \new Staff \with { alignAboveContext = #"main" } { f8 f c } >> r4 | } } "This example uses \with, which will be explained more fully later. It is a means of modifying the default behavior of a single Staff. Here it says that the new staff should be placed above the staff called “main” instead of the default position which is below." The definitions here are really important: A new staff named "main" a new staff aligned above the staff named "main" In order to use this, you have to know which contexts things are aligned to. For example: %\version "2.12.3" %% works: << \new Staff = "firstStaff" \new Voice = "firstVoice" { a4 g a g } \new Staff = "secondStaff" \with { alignAboveContext = "firstStaff" } \new Voice = "secondVoice" { f4 g f g } \new Lyrics \with { alignAboveContext = "firstStaff" } \lyricsto "firstVoice" \lyricmode { A G A G } \new Lyrics \with { alignAboveContext = "firstLyrics" } \lyricsto "secondVoice" \lyricmode { F G F G } >> %% doesn't work: << \new Staff = "firstStaff" \new Voice = "firstVoice" { a4 g a g } \new Staff = "secondStaff" \with { alignAboveContext = "firstVoice" } \new Voice = "secondVoice" { f4 g f g } \new Lyrics = "firstLyrics" \with { alignAboveContext = "firstVoice" } \lyricsto "firstVoice" \lyricmode { A G A G } \new Lyrics = "secondLyrics" \with { alignBelowContext = "firstVoice" } \lyricsto "secondVoice" \lyricmode { F G F G } >> Hope this helps, James On 31.05.2010, at 19:01, Jay Hamilton wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |