doctitle = "Adding drum parts"
} % begin verbatim
-drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }
-drl = \drummode { bd4 sn8 bd bd4 << bd ss >> bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
-timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }
+drh = \drummode {
+ cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh
+ hhc4 r4 r2
+ }
+drl = \drummode {
+ bd4 sn8 bd bd4 << bd ss >>
+ bd8 tommh tommh bd toml toml bd tomfh16 tomfh
+ }
+timb = \drummode {
+ timh4 ssh timl8 ssh r timh r4
+ ssh8 timl r4 cb8 cb
+ }
\score {
<<
doctitle = "Adding links to objects"
} % begin verbatim
-% Code by Thomas Morley
-% Contributed by harm6
-% Tested with 2.14.2 up to 2.17.9
-
#(define (add-link url-strg)
(lambda (grob)
(let* ((stil (ly:grob-property grob 'stencil)))
(x-ext (ly:stencil-extent stil X))
(y-ext (ly:stencil-extent stil Y))
(url-expr (list 'url-link url-strg `(quote ,x-ext) `(quote ,y-ext)))
- (new-stil (ly:stencil-add (ly:make-stencil url-expr x-ext y-ext) stil)))
+ (new-stil (ly:stencil-add
+ (ly:make-stencil url-expr x-ext y-ext) stil)))
(ly:grob-set-property! grob 'stencil new-stil)))
#f))))
}
% Reducing the minimum space below the staff and above the lyrics:
\new Lyrics \with {
- \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 1))
+ \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
+ #'((basic-distance . 1))
}
\lyricsto melody { aa aa aa aa aa aa aa aa aa }
>>
lsrtags = "ancient-notation, symbols-and-glyphs"
texidoc = "
-Shown here are many (all?) of the symbols that are included in
-LilyPond's support for ancient notation.
+Shown here are many of the symbols that are included in LilyPond's
+ancient notation.
"
doctitle = "Ancient fonts"
\override NoteHead.style = #'vaticana.cephalicus
es f
- \override Staff.KeySignature.glyph-name-alist = #alteration-medicaea-glyph-name-alist
- \override Staff.Accidental.glyph-name-alist = #alteration-medicaea-glyph-name-alist
+ \override Staff.KeySignature.glyph-name-alist =
+ #alteration-medicaea-glyph-name-alist
+ \override Staff.Accidental.glyph-name-alist =
+ #alteration-medicaea-glyph-name-alist
\override Staff.Custos.style = #'medicaea
\override NoteHead.style = #'medicaea.punctum
\clef "medicaea-fa2"
\override NoteHead.style = #'medicaea.rvirga
e des ces
- \override Staff.KeySignature.glyph-name-alist = #alteration-hufnagel-glyph-name-alist
- \override Staff.Accidental.glyph-name-alist = #alteration-hufnagel-glyph-name-alist
+ \override Staff.KeySignature.glyph-name-alist =
+ #alteration-hufnagel-glyph-name-alist
+ \override Staff.Accidental.glyph-name-alist =
+ #alteration-hufnagel-glyph-name-alist
\override Staff.Custos.style = #'hufnagel
\override NoteHead.style = #'hufnagel.punctum
\clef "hufnagel-fa2"
>>
\layout {
indent = 0.0
- line-width = 17.25\cm
\context {
\Score
timing = ##f
(padding . 0.25)
(attach-dir . 2)))
%% uncomment this line for make full barred
- % \once \override TextSpanner.bound-details.left.text = \markup { "B" #str }
- $music
+ % \once \override TextSpanner.bound-details.left.text = \markup{"B" #str}
+ $music
#})
%% %%%%%%% Cut here ----- End 'bbarred.ly'
% rvarcomma and lvarcomma are variations of the default rcomma and lcomma
% N.B.: must use Staff context here, since we start a Voice below
- \override Staff.BreathingSign.text = \markup { \musicglyph #"scripts.rvarcomma" }
+ \override Staff.BreathingSign.text =
+ \markup { \musicglyph #"scripts.rvarcomma" }
<< { g4 as g } \\ { es4 \breathe bes es } >> |
% vee
es8[ d es f g] \breathe f |
% caesura
- \override BreathingSign.text = \markup { \musicglyph #"scripts.caesura.curved" }
+ \override BreathingSign.text =
+ \markup { \musicglyph #"scripts.caesura.curved" }
es8[ d] \breathe es[ f g f] |
es2 r4 \bar "||"
}
(ly:stencil-combine-at-edge
(ly:stencil-aligned-to stencil X CENTER)
Y dir
- (ly:stencil-aligned-to (grob-interpret-markup grob text) X CENTER))
+ (ly:stencil-aligned-to
+ (grob-interpret-markup grob text) X CENTER))
X LEFT))
- (staff-space (ly:output-def-lookup (ly:grob-layout grob) 'staff-space))
+ (staff-space (ly:output-def-lookup
+ (ly:grob-layout grob) 'staff-space))
(staff-line-thickness
(ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
- (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name)))
+ (grob-name (lambda (x) (assq-ref
+ (ly:grob-property x 'meta) 'name)))
(par-x (ly:grob-parent grob X))
(dyn-text (eq? (grob-name par-x) 'DynamicText ))
(dyn-text-stencil-x-length
} % begin verbatim
\relative c' {
- <\tweak font-size #+2 c e g c \tweak font-size #-2 e>1^\markup { A tiny e }_\markup { A big c }
+ <\tweak font-size #+2 c e g c
+ \tweak font-size #-2 e>1
+ ^\markup { A tiny e }_\markup { A big c }
}
"
doctitle = "Chord glissando in tablature"
} % begin verbatim
-%=> http://lilypond.1069038.n5.nabble.com/LSR-chord-glissando-in-tablature-obsolete-tc159863.html
myMusic = \relative c' {
<c e g>1 \glissando <f a c>
>>
}
\layout {
+ indent = 3.0\cm
+ short-indent = 1.5\cm
\context {
\GrandStaff
\consists Keep_alive_together_engraver
doctitle = "Extending a TrillSpanner"
} % begin verbatim
-%=> http://lilypond-french-users.1298960.n2.nabble.com/Allonger-un-trille-td7581110.html
-
-%by P.P.Schneider on April 2014
-
\relative c' {
\key c\minor
\time 2/4
c1 \mark \default
c1 \mark \default
c1 \mark \default
- c1 \mark \default
+ c1
\break
\set Score.markFormatter = #format-mark-numbers
c1 \mark #1
c1 \mark \default
c1 \mark \default
c1 \mark \default
- c1 \mark \default
+ c1
}
(rotated-flag (ly:stencil-rotate-absolute stencil 180 0 0)))
(ly:stencil-translate rotated-flag (cons (- (/ stem-width 2)) 0))))
-snippetexamplenotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 }
+snippetexamplenotes =
+{
+ \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64
+}
{
\override Score.RehearsalMark.self-alignment-X = #LEFT
doctitle = "Horizontally aligning custom dynamics (e.g. \"sempre pp\" \"piu f\" \"subito p\")"
} % begin verbatim
-\header { title = "Horizontally aligning custom dynamics" }
-
-\paper { ragged-right = ##f }
+\paper {
+ ragged-right = ##f
+ indent = 2.5\cm
+}
% Solution 1: Using a simple markup with a particular halign value
% Drawback: It's a markup, not a dynamic command, so \dynamicDown
\context Staff = "s" <<
\set Staff.instrumentName = #"Normal"
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
c4\pp c\p c c | c\ff c c\pp c
}
\context Staff = "sMarkup" <<
\set Staff.instrumentName = \markup \column { Normal markup }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
c4-\semppMarkup c\p c c | c\ff c c-\semppMarkup c
}
\context Staff = "sK" <<
\set Staff.instrumentName = \markup \column { Explicit shifting }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
\once \override DynamicText.X-offset = #-9.2
c4\semppK c\p c c
\context Staff = "sT" <<
\set Staff.instrumentName = \markup \column { Right padding }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
c4\semppT c\p c c | c\ff c c\semppT c
}
\context Staff = "sM" <<
\set Staff.instrumentName = \markup \column { Setting dimension "to zero" }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
c4\semppM c\p c c | c\ff c c\semppM c
}
\context Staff = "sG" <<
\set Staff.instrumentName = \markup \column { Shifting inside dynamics }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
c4\semppG c\p c c | c\ff c c\semppG c
}
\context Staff = "sMII" <<
\set Staff.instrumentName = \markup \column { Alignment inside dynamics }
\relative c'' {
+ \override Staff.InstrumentName.self-alignment-X = #LEFT
\key es \major
% Setting to ##f (false) gives the same result
\override DynamicText.X-offset = #0
}
}
}
-
+% To make the example display in the documentation
+\paper {
+ paper-width = 130
+}
%#(set-global-staff-size 16)
\include "english.ly"
texidoc = "
The mensurstriche-layout where the bar lines do not show on the staves
but between staves can be achieved with a @code{StaffGroup} instead of
-a @code{ChoirStaff}. The bar line on staves is blanked out by setting
-the @code{transparent} property.
+a @code{ChoirStaff}. The bar line on staves is blanked out using
+@code{\\hide}.
"
doctitle = "Mensurstriche layout (bar lines between the staves)"
7.5332399 200.42458 7.6444521 200.59122 7.6422017 200.76488 curveto
closepath
clip
- gsave [0.052859054 0.063089841 -0.020912282 0.017521108 5.7334261 189.76443] concat
+ gsave [
+ 0.052859054 0.063089841 -0.020912282 0.017521108 5.7334261 189.76443
+ ] concat
shfill
grestore
grestore
5.1631598 202.49149 5.2743721 202.65813 5.2721217 202.83181 curveto
closepath
clip
- gsave [0.052859054 0.063089841 -0.020912282 0.017521108 3.363346 191.83136] concat
+ gsave [
+ 0.052859054 0.063089841 -0.020912282 0.017521108 3.363346 191.83136
+ ] concat
shfill
grestore
grestore
<c-1 d-\tweak extra-offset #'(0 . 0.2)-2 a'-5>4
\set fingeringOrientations = #'(down)
<c-1 d-2 a'-5>4
- <c-\tweak extra-offset #'(0 . -1.1)-1 d-\tweak extra-offset #'(-1.2 . -1.8)-2 a'-5>4
+ <c-\tweak extra-offset #'(0 . -1.1)-1
+ d-\tweak extra-offset #'(-1.2 . -1.8)-2 a'-5>4
\set fingeringOrientations = #'(down right up)
<c-1 d-\tweak extra-offset #'(-0.3 . 0)-2 a'-5>4
<c-1 d-\tweak extra-offset #'(-1 . 1.2)-2 a'-5>4
\set fingeringOrientations = #'(up)
- <c-1 d-\tweak extra-offset #'(0 . 1.1)-2 a'-\tweak extra-offset #'(0 . 1)-5>4
- <c-1 d-\tweak extra-offset #'(-1.2 . 1.5)-2 a'-\tweak extra-offset #'(0 . 1.4)-5>4
+ <c-1 d-\tweak extra-offset #'(0 . 1.1)-2
+ a'-\tweak extra-offset #'(0 . 1)-5>4
+ <c-1 d-\tweak extra-offset #'(-1.2 . 1.5)-2
+ a'-\tweak extra-offset #'(0 . 1.4)-5>4
}
\bar "||"
% Set segno sign as rehearsal mark and adjust size if needed
- \once \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
+ \once \override Score.RehearsalMark.break-visibility =
+ #begin-of-line-invisible
% \once \override Score.RehearsalMark.font-size = #3
\mark \markup { \musicglyph #"scripts.segno" }
% Here begins the trickery!
- % \cadenzaOn will suppress the bar count and \stopStaff removes the staff lines.
+ % \cadenzaOn will suppress the bar count
+ % and \stopStaff removes the staff lines.
\cadenzaOn
\stopStaff
% Some examples of possible text-displays
% text and symbols center-aligned
% ===============================
- % Move text to the desired position and tweak spacing for optimum text alignment
+ % Move text to the desired position
+ % and tweak spacing for optimum text alignment
\repeat unfold 1 {
s1
\bar ""
}
\once \override TextScript.extra-offset = #'( 0 . -3.0 )
\once \override TextScript.word-space = #1.5
- <>^\markup { \center-column { "D.S. al Coda" \line { \musicglyph #"scripts.coda" \musicglyph #"scripts.tenuto" \musicglyph #"scripts.coda"} } }
+ <>^\markup { \center-column { "D.S. al Coda"
+ \line {
+ \musicglyph #"scripts.coda"
+ \musicglyph #"scripts.tenuto"
+ \musicglyph #"scripts.coda"} } }
% Increasing the unfold counter will expand the staff-free space
\repeat unfold 3 {
% Set coda sign as rehearsal mark and adjust size and position
- % Put the coda sign ontop of the (treble-)clef dependend on coda's line-position
+ % Put the coda sign on top of the (treble-)clef
+ % depending on coda's line-position
% Coda NOT on new line, use this:
% \once \override Score.RehearsalMark.extra-offset = #'( -2 . 1.75 )
"
doctitle = "Removing brace on first line of piano score"
} % begin verbatim
-% => http://lilypond.1069038.n5.nabble.com/Getting-rid-of-initial-brace-on-piano-score-td161158.html
+
someMusic = {
\once \override Staff.Clef.stencil = ##f
\once \override Staff.TimeSignature.stencil = ##f
\remove "Clef_engraver"
} {
\override Staff.StaffSymbol.line-positions = #'(0)
- % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated with a gridline
+ % Shows one horizontal line. The vertical line
+ % (simulating a bar-line) is simulated with a gridline
\set Staff.midiInstrument = #"choir aahs"
\key c \major
\relative c''
% 2. uncomment the line \NoNoteHead
% 3. compile
% 4. Mark the positions on which push/pull changes.
- % In the score-picture click on the position the push- or pull-part starts
+ % In the score-picture click on the position
+ % the push- or pull-part starts
% (on the noteHead, the cursor will change to a hand-icon).
% The cursor in the source code will jump just at this position.
% a) If a push-part starts there, replace the 'c' by an 'e['
% 6. For the pull-parts overwrite the 'c' with 's'
% 7. For every push-part replace the last 'c' with 'e]'
% 8. Switch into 'insert-mode' again
- % 9. At last it should look lik e.g. (s s e[ c | c c c c c c c c | c c c c c c e] s s)
+ % 9. At last it should look like e.g.
+ % (s s e[ c | c c c c c c c c | c c c c c c e] s s)
% 10. re-enable the line \NoNoteHead
\autoBeamOff
\ZeroBeam
% Accordion melody in tabulator score
% 1. Place a copy of the piano melody below
-% 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made
-% 3. For each line: Double the line. Remark the 1st one (Keeps unchanged as reference) and then change the second line using the transformation paper
+% 2. Separate piano melody into pull- and push-parts
+% according to the staffTabLine you've already made
+% 3. For each line: Double the line. Remark the 1st one
+% (Keeps unchanged as reference) and then change the second
+% line using the transformation paper
% or the macros 'conv2diaton push.bsh' and 'conv2diaton pull.bsh'
% Tips:
% - In jEdit Search & Replace mark the Option 'Keep Dialog'
AccordionTab= { \dynamicUp
% 1. Place a copy of the piano melody above
- % 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made
- % 3. For each line: Double the line. Remark the 1st one (Keeps unchanged as reference) and then
- % change the second line using the transformation paper
+ % 2. Separate piano melody into pull- and push-parts
+ % according to the staffTabLine you've already made
+ % 3. For each line: Double the line. Remark the 1st one
+ % (Keeps unchanged as reference) and then
+ % change the second line using the transformation paper
% Tips:
% - In jEdit Search & Replace mark the Option 'Keep Dialog'
% -
\clef treble
{
\context Voice = "melodyVoi"
- { <f' bes'>8 <f' a'>8 <d' bes'>8 | <g' c''>4 <f' d''> <g' es''> <f' a'> | <f' bes'>2 r8 }
+ {
+ <f' bes'>8 <f' a'>8 <d' bes'>8 |
+ <g' c''>4 <f' d''> <g' es''> <f' a'> |
+ <f' bes'>2 r8
+ }
\bar "|."
}
}
\override Score.GridLine.extra-offset = #'( 13.0 . 0.0 ) % x.y
\override Staff.StaffSymbol.line-positions = #'( 0 )
- % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated by a grid
+ % Shows one horizontal line. The vertical line
+ % (simulating a bar-line) is simulated by a grid
% Search for 'grid' in this page to find all related functions
\time 4/4
{
\paper {
system-separator-markup = \slashSeparator
+ line-width = 120
}
notes = \relative c' {
\override TextSpanner.style = #'solid
\override TextSpanner.font-size = #-5
\override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
- \override TextSpanner.bound-details.left.text = \markup { \circle \number $StringNumber }
+ \override TextSpanner.bound-details.left.text =
+ \markup { \circle \number $StringNumber }
#})
doctitle = "Tuplet bracket and change staff"
} % begin verbatim
-%% http://lsr.di.unimi.it/LSR/Item?id=926
-%=> http://lilypond-french-users.1298960.n2.nabble.com/Crochet-de-nolet-tordu-tt7581491.html
-%=> http://lilypond.1069038.n5.nabble.com/Tuplet-bracket-amp-changeStff-td164063.html
-
aigues = \relative c' {
\time 6/8
s4.
\set Score.tempoHideNote = ##t
\key f \major
\time 4/4
- g1 d'2 \menrest bes4 bes2 a2 r4 g4 fis2. \tag #'mens { \finalis } \tag #'mod { \bar "||" }
+ g1 d'2 \menrest bes4 bes2 a2 r4 g4 fis2.
+ \tag #'mens { \finalis }
+ \tag #'mod { \bar "||" }
}
MenLyr = \lyricmode { So farre, deere life, deare life }
cbI =
\relative c' {
\mark \markup {
- \bold "Teacher:"
- \column {
- "Well, you simply copied and transposed a version of J.S.Bach."
- "Do you know this one?"
- }
+ \bold "Teacher:"
+ \column {
+ "Well, you simply copied and transposed a version of J.S.Bach."
+ "Do you know this one?"
+ }
}
\key a \minor
\time 4/4