The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse Contributing Snippet database

Results 1−10 of 550 for staff

Coloring individual staff lines [0.62500]

Coloring individual staff lines

Staff lines can be colored independently by overriding the … …x11-color and rgb-color) which are applied to each staff line in turn starting with the fifth line (for a standard staff), or each item in the list for custom …

…c' { % color all lines in a standard five-line staff \override Staff.StaffSymbol.stencil = #(color-staff-lines red green … …an individual line in a custom staff \override Staff.StaffSymbol.line-positions = #'(-4 0 4) \override Staff.StaffSymbol.stencil = #(color-staff-lines #f red) c1 }

Staff notation version-specific Tweaks and overrides

Coloring individual staff lines

Adding an extra staff (2) [0.62500]

Adding an extra staff (2)

To add an extra staff after the start of a piece, you can … …wish to remove also the little part of staff at the beginning of the extra staff: => Use … …you want to keep the little beginning of staff, keep at least one #'transparent = ##t.

…new StaffGroup \relative c'' { c1 | c | c^"extra staff with staff beginning" << { c1 | c | \break c1^"new … …system with braces" | c } \new Staff { \once \override Staff.TimeSignature.stencil = ##f \once \override Staff.Clef.stencil = ##f e1 e e e } >> c1 | …

Staff notation Contexts and engravers Simultaneous notes really simple

Adding an extra staff (2)

Placing rehearsal marks other than above the top staff [0.62054]

Placing rehearsal marks other than above the top staff

…rehearsal marks somewhere else than above the top staff is not possible by default. This is due to a malfunction in the Staff_collecting_engraver, see Issue 2199. This solution (courtesy … …rehearsal marks and may be inserted anywhere between staff and other lines. Remark from LSR-editor: Issue 2199 …

…b | d2 c2 | } baz = { R1*4 } \score { << \new Staff << \global \foo >> \new MarkLine \global \new Staff << \global \… …consists Mark_engraver \consists Metronome_mark_engraver \consists Staff_collecting_engraver \override RehearsalMark.extra-spacing-width = #'(0 . 1) \… …remove Mark_engraver \remove Metronome_mark_engraver \remove Staff_collecting_engraver \accepts MarkLine } } }

Staff notation Contexts and engravers workaround

Placing rehearsal marks other than above the top staff

Display bracket with only one staff in a system [0.61607]

Display bracket with only one staff in a system

If there is only one staff in one of the staff types ChoirStaff or … …value to be less than the number of staff lines in the staff. Note that in contexts such as PianoStaff and …

…Must be lower than the actual number of staff lines \override StaffGroup.SystemStartBracket.collapse-height = 4 \override Score.SystemStartBar.collapse-height = 4 \new Staff { c'1 } >> } \score { \new PianoStaff << \override PianoStaff.SystemStartBrace.collapse-height = 4 \override Score.SystemStartBar.collapse-height = 4 \new Staff { c'1 } >> } \paper { tagline = ##f }

Staff notation Tweaks and overrides docs

Display bracket with only one staff in a system

Staff containers [0.60714]

Staff containers

…this preliminary test of a modern score, the staff lines are washed out temporarily. This is done … …without printing lines either and creates a \new Staff then in order to create the lines again. (…

…we descend to the voice inside SA << \new Staff { c4 c4 } >> \skip 4 % s4 would create staff. << \… …engraver" \consists "Axis_group_engraver" \accepts "Staff" \defaultchild "Staff" \name StaffContainer } \context { \Staff \remove "Axis_group_engraver" \remove "Separating_line_group_…

Staff notation Editorial annotations Contemporary notation Contexts and engravers …

Staff containers

Customizing individual staff lines [0.60714]

Customizing individual staff lines

…a near-exact copy of snippet #700 (Coloring individual staff lines). It allows you to provide separate functions for drawing each staff line. #f will draw the staff line normally.

…1 (* w 0.6) -1 w 0)))))) \new Staff { c'1 \stopStaff \override Staff.StaffSymbol.stencil = #(custom-staff-lines wavy-line wavy-line #f wavy-line wavy-line) \startStaff c'1 \stopStaff \revert Staff.StaffSymbol.stencil \startStaff c'1 }

Contemporary notation Staff notation

Customizing individual staff lines

Adding an extra staff at a line break [0.60491]

Adding an extra staff at a line break

When adding a new staff at a line break, some extra space is … …The workaround is to add a setting of Staff.explicitKeySignatureVisibility as is shown in the example.

…tagline = ##f } \score { \new StaffGroup \relative c'' { \new Staff \key f \major c1 c^"Unwanted extra space" \… …here" \break << { c1 | c } \new Staff { \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible \key f \major \once \omit Staff.TimeSignature c1 | c } >> } }

Staff notation Breaks Contexts and engravers workaround docs

Adding an extra staff at a line break

Dashed individual staff lines [0.60268]

Dashed individual staff lines

You can customize a staff so that some (or all) of its lines … …following will replace the center line of the staff with a dashed line: \dashedStaffSymbolLines #'( #f #f …

…the width, the second the spacing " #{ \override Staff.StaffSymbol.after-line-breaking = #(lambda (grob) (let* ((staff-stencil (ly:grob-property … …#'(#f #t #f #t #f) } \music \new Staff \with { \override StaffSymbol.line-positions = #'(-4 0 4) \dashedStaffSymbolLines #'(#f #t #f) % make staff smaller: fontSize = #-3 \override StaffSymbol.staff-space = #(magstep …

Staff notation Tweaks and overrides Scheme language Symbols and …

Dashed individual staff lines

Using markup for a staff's instrumentName [0.58929]

Using markup for a staff's instrumentName

The instrumentName property of a staff or a staff group can take arbitrary markup. For example, rather …

…di.unimi.it/LSR/Item?id=515 \new Staff = "Percussion" << %Use a markup as the instrumentName for the staff! \set Staff.instrumentName = \markup { \combine \translate #(cons -1.25 …

Staff notation Editorial annotations Percussion

Using markup for a staff's instrumentName

Displaying bar numbers on a separate staff [0.57143]

Displaying bar numbers on a separate staff

…a more prominent measure counter in between of staff groups in large scores.

…a more prominent measure counter %% in between of staff groups in large scores. %% %% To use it, insert %% \… …PianoStaff \with { instrumentName = "Continuo" } << \new Staff \music \new Staff { \clef bass \music } >> \new Staff { \clef bass \music } >> \layout { \context { \Score \override NonMusicalPaperColumn.…

Staff notation Contexts and engravers Preparing parts

Displaying bar numbers on a separate staff

1 2 3 4 5 6 7 8 9 10 Next ⇨