Next: , Previous: Repeats, Up: Top


Simultaneous notes

changing-an-individual-notes-size-in-a-chord.ly

Individual noteheads in a chord can be modified with the \tweak command inside a chord, by altering the 'font-size property.

Inside the chord (within the brackets < >), before the note to be altered, place the \tweak command, followed by #'font-size and define the proper size like #-2 (a tiny notehead).

The code for the chord example shown:

\header{
  title = "Modify an individual notehead's size in a chord"
}

Notes = \relative {
  <\tweak #'font-size #+2 c e g c \tweak #'font-size #-2 e>1^\markup{A tiny e}_\markup{A big c}
}

\score{
  \Notes
}

[image of music]

clusters.ly

Clusters are a device to denote that a complete range of notes is to be played.

\layout {
  ragged-right = ##t 
}

fragment = \relative c' {
  c4 f4 <e d'>4
  <g a>8 <e a> a4 c2 <d b>4 e4 
  c4
}

<<
  \new Staff \fragment
  \new Staff \makeClusters \fragment
>>

[image of music]

combining-two-parts-on-the-same-staff.ly

The part combiner tool ( \partcombine command ) allows you to combine different parts on a same Staff. You can choose whether you want or don't want to add texts such as "solo" or "a2", by defining the printPartCombineTexts property.

For vocal scores (hymns), there is no need to add "solo"/"a2" texts, so they should be switched off. However, you'd better not use it if there are any solos, as they won't be indicated. In such cases, you may simply want to use standard LilyPond polyphony.

This snippet presents the three ways two parts can be printed on a same staff : standard polyphony, \partcombine whitout texts, and \partcombine with texts.

musicUp = {
  \time 4/4
  \relative c'' {
    a4 c4.(g8) a4 |
    g4 e' g,( a8 b) | 
    c b a2.
  }
}

musicDown = {
  \relative c'' {
    g4 e4.(d8) c4 |
    r2 g'4( f8 e) |
    d2 a
  }
}

\score{
  \new Staff {
    \set Staff.instrumentName = "Standard polyphony  "
    << \musicUp  \\ \musicDown >>
}

  \layout{ 
    indent = 6.0\cm 
  }
}

\score{
	\context Staff {
			\set Staff.instrumentName = "PartCombine without texts  "
			\partcombine \musicUp \musicDown
	}
	\layout{
		indent = 6.0\cm
		\context {
			\Voice
			printPartCombineTexts = ##f
		}
	}
}

\score{
	\context Staff {
			\set Staff.instrumentName = "PartCombine with texts  "
			\partcombine \musicUp \musicDown
	}
	\layout{
		indent = 6.0\cm
		\context {
			\Voice
			printPartCombineTexts = ##t
		}
	}
}

[image of music]



Next: , Previous: Repeats, Up: Top

This page is for LilyPond-2.11.40 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.