Both problems pointed out in this thread show a limitation in
the handling of volta brackets. A volta bracket is only printed
over contexts where the property voltaOnThisStaff is set to true.
At the beginning of a score, this property is automatically
set to true for the topmost Staff context and false in all other
contexts. This works well for normal scores, but not in the two
situations brought up here:
- When the topmost Staff is removed from some lines when you
use \RemoveEmptyStaffContext.
- When you add a new topmost Staff in the middle of a score using
staffAlignAboveContext.
In the second case, it's simple enough for the user to set
voltaOnThisStaff manually and it could be enough to add a note
to the documentation about this issue.
However, in the case of \RemoveEmptyStaffContext it's more tricky
to work around it manually, since the user does not know in advance
exactly at which bar a Staff will disappear. So, this situation should
really be handled automatically.
/Mats
Nicolas Sceaux wrote:
"Stephen" <[EMAIL PROTECTED]> writes:
Why not start with all three staffs and remove the staff from the
first line?
Using:
\layout {
\context { \RemoveEmptyStaffContext }
}
Stephen
Because that does not work either. The "1." volta is not displayed.
------------------------------------------------------------------------
\version "2.7.3"
global = {
\override Score.RemoveEmptyVerticalGroup #'remove-first = ##t
s1
\set Score . repeatCommands = #'((volta "1."))
s1
\set Score . repeatCommands = #'((volta #f)) \bar "|."
s1
\bar "||" \break
\set Score . repeatCommands = #'((volta "2."))
s1
\set Score . repeatCommands = #'((volta #f))
s1
\bar "|."
}
\score {
\new StaffGroup <<
\new Staff <<
\global
{ R1*3 \repeat unfold 2 g'1 }
>>
\new Staff <<
\global
\repeat unfold 5 e'1
>>
\new Staff <<
\global
\repeat unfold 5 c'1
>>
>>
\layout {
raggedright = ##t
\context { \RemoveEmptyStaffContext }
}
}
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
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
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user