Staff brackets: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
m New category Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 46: | Line 46: | ||
[[Category:Syntax and expressions]] | [[Category:Syntax and expressions]] | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:27, 21 November 2025
Staffs can be nested in various combinations. Here, StaffGroup and ChoirStaff produce similar straight brackets, whereas GrandStaff produces curly brackets. In InnerStaffGroup and InnerChoirStaff, the brackets are shifted leftwards.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=137
myMusic = { c' d' e' f' }
\score {
<<
\new StaffGroup <<
\new Staff \myMusic
\new StaffGroup <<
\new Staff \myMusic
\new GrandStaff <<
\new Staff \myMusic
\new Staff \myMusic
>>
\new Staff \myMusic
>>
\new ChoirStaff <<
\new Staff \myMusic
\new StaffGroup <<
\new Staff \myMusic
>>
\new Staff \myMusic
>>
>>
\new ChoirStaff <<
\new Staff \myMusic
\new ChoirStaff <<
\new Staff \myMusic
\new Staff \myMusic
>>
\new Staff \myMusic
>>
>>
\layout {
raggedright = ##t
}
}