]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/parenthesize-singlenotes-chords-rests.ly
Doc-es: various updates.
[lilypond.git] / input / regression / parenthesize-singlenotes-chords-rests.ly
1
2 \header {
3   texidoc = "The parenthesize function should also work on single notes (not inside chords), rests and on whole chords (each note of the chord is parenthesized). Also, parenthesizing articulations, dynamics and text markup is possible. On all other music expressions, parenthesize does not have an effect.
4
5   Measure 1: Three parenthesized notes (staccato not parenthesized), one note with staccato in parentheses; Measure 2: Chord and two rests in parentheses (accent and markup not); Measure 3: note (no parentheses) with \p in parentheses, with text in parentheses, and note in parentheses with p not in parentheses, rest (no parentheses); Measure 4: shows that \parenthesize does not apply to other expressions like SequentialMusic"
6 }
7
8
9 \paper {
10   ragged-right = ##t
11 }
12
13 \version "2.16.0"
14
15
16 \relative c'' {
17   % parentheses on single notes (with articulations), inside chord and articulation
18   \parenthesize c \parenthesize c-. <\parenthesize c> c-\parenthesize-. |
19   % parenthesized rests and whole chords
20   \parenthesize <c e g>4-> \parenthesize r \parenthesize r2^"rest" |
21   % parenthesizing dynamics and text markup
22   c4-\parenthesize\p c-\parenthesize-"Text" \parenthesize c\p r4 |
23   % parenthesizing other music expressions does nothing
24   \parenthesize {c4 c-. <c e g> r} \parenthesize|
25 }