%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: chords, ancient-notation
+%% Tags: chords, ancient-notation, contexts-and-engravers
\version "2.11.35"
\header { texidoc = "
wish. Use \\once \\override if you dont want the tweak to apply to the
whole score.
" }
-
+% begin verbatim
bass = { \clef bass g4 b, c d e d8 c d2}
continuo = \figuremode {
< _ >4 < 6 >8
Ambits can be added per voice. In that case, the ambitus must be moved
manually to prevent collisions.
" }
-
+% begin verbatim
{
\new Staff <<
\new Voice \with {
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: staff-notation
+%% Tags: staff-notation, contexts-and-engravers
\version "2.11.35"
\header { texidoc = "
You can add (possibly temporarily) an extra staff after the beginning
of a piece.
" }
-
+% begin verbatim
\score {
<<
\new Staff \relative c''{ c1 c c c c }
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: staff-notation
+%% Tags: staff-notation, contexts-and-engravers, breaks
\version "2.11.35"
\header { texidoc = "
as is shown in the example. In version 2.10 and earlier, you have to do
a similar setting for the time signatures, see the example.
" }
-
+% begin verbatim
\score {
\new StaffGroup \relative c''{
\new Staff
manual beaming, manual slurs, ties, and phrasing slurs, while using
tuplet sections (enclosed with curly braces).
" }
-
+% begin verbatim
{
r16[ g16 \times 2/3 {r16 e'8] }
and have note heads according to the drum. You can easily attach an
extra symbol to the drum, and restrict the number of lines.
" }
-
+% begin verbatim
drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh \repeat "unfold" 5 {hhc8 hho hhc8 hh16 hh} hhc4 r4 r2 }
drl = \drummode {\repeat "unfold" 3 {bd4 sn8 bd bd4 << bd ss >> } bd8 tommh tommh bd toml toml bd tomfh16 tomfh }
timb = \drummode { \repeat "unfold" 2 {timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb} }
To add fingerings to tablatures, you can use a combination of
@code{\\markup} and @code{\\finger}.
" }
-
+% begin verbatim
one = \markup{ \finger "1" }
two = \markup{ \finger "2" }
threetwo = \markup{ \column {\finger "3" \finger "2"} }
The parenthesize function is a special tweak that encloses objects in
parentheses. The associated grob is Score.ParenthesesItem.
" }
-
+% begin verbatim
\relative {
c4 -\parenthesize -.
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: titles
+\version "2.11.35"
+
+\header { texidoc = "
+I often find it useful to include a date on printed music, so that I
+can see if I'm using the latest version, or tell someone else that he
+should only use the version after a certain date. A simple solution is
+to enter the date manually to the @code{.ly} file. But that's very
+error prone. It's easy to forget updating the date. So i thought it
+would be useful if you can add the date on which the PDF file is
+generated automatically. I did't figure it out myself, but I asked on
+lilypond-user@gnu.org. And guess what? Someone came with an excellent
+solution! So thank you very much Toine Schreurs for sending this
+solution to the user mailing list. I post it here for future reference.
+
+The solution is to use two scheme functions called @code{strftime} and
+@code{localtime}, as shown in the snippet. It is a very flexible
+solution, you can format the date just as you like it by adapting the
+@code{\"%d-%m-%Y\"} string. See the Guile documentation for more
+details on this format string: Formatting Calendar Time.
+" }
+% begin verbatim
+\version "2.11.35"
+% first, define a variable to hold the formatted date:
+date = #(strftime "%d-%m-%Y" (localtime (current-time)))
+
+% use it in the title block:
+\header {
+ title = "Including the date!"
+ subtitle = \date
+}
+% begin verbatim
+\score {
+ \relative c'' {
+ c4 c c c
+ }
+}
+% and use it in a \markup block:
+\markup {
+ \date
+}
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: text, vocal-music
+%% Tags: text, vocal-music, spacing
\version "2.11.35"
\header { texidoc = "
This snippets shows you how to bring the lyrics line closer to the
Staff.
" }
-
+% begin verbatim
% Default layout:
\score{
<<
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: text
+%% Tags: text, paper-and-layout, titles
\version "2.11.35"
\header { texidoc = "
" }
-
+% begin verbatim
\paper{
indent = #0
left-margin = #30
is left, #0 is center and #1 is right; however, you can use #LEFT,
#CENTER and #RIGHT as well.
" }
-
+% begin verbatim
\relative c'' {
c1 c c}
\addlyrics {\once \override LyricText #'self-alignment-X = #LEFT "This is left-aligned"
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: tweaks-and-overrides, paper-and-layout, spacing
+\version "2.11.35"
+
+\header { texidoc = "
+By setting properties in @code{NonMusicalPaperColumn}, vertical spacing
+of alignments can be adjusted per system.
+
+
+By setting @code{alignment-extra-space} or
+@code{fixed-alignment-extra-space} an individual system may be
+stretched vertically.
+
+
+For technical reasons, @code{\\overrideProperty} has to be used for
+setting properties on individual objects. @code{\\override} in a
+@code{\\context} block may still be used for global overrides.
+" }
+% begin verbatim
+#(set-global-staff-size 13)
+
+\relative c''
+\new StaffGroup <<
+ \new Staff {
+ c1\break
+ c\break
+ c\break
+ }
+ \new Staff {
+ c1 c c
+ }
+ \new PianoStaff <<
+ \new Voice {
+ \set PianoStaff.instrumentName = #"piano"
+ \set PianoStaff.shortInstrumentName = #"pn"
+ c1_"normal"
+
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((fixed-alignment-extra-space . 15))
+ c_"fixed-aligment-extra-space"
+
+ \overrideProperty
+ #"Score.NonMusicalPaperColumn"
+ #'line-break-system-details
+ #'((alignment-extra-space . 15))
+ c_"aligment-extra-space"
+ }
+ { c1 c c }
+ >>
+>>
+
+
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms
+%% Tags: rhythms, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
" }
-
+% begin verbatim
\relative {
#(override-auto-beam-setting '(end * * * *) 1 4)
f32 g a b b a g f
@code{ \\override Ambitus #'X-offset = #-1.0 }
-
+% begin verbatim
This code moves the ambitus to the left. The same effect could have
" }
-
+% begin verbatim
upperStaff = \context GregorianStaff = "upperStaff" <<
\context GregorianVoice <<
\set Score.timing = ##f
" }
-
+% begin verbatim
\score {
{
\override Staff.TimeSignature #'style = #'neomensural
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
demonstrates the ability to transpose a melody without losing the
correspondance between harmonic functions and note heads styles.
" }
-
+% begin verbatim
fragment = {
\key c \major
c1 d e f g a b c
subdivideBeams, and beams are subdivided at beat positions (as
specified in beat length)
" }
-
+% begin verbatim
\relative{ b'32^"default"[ a g f c' b a g f e d' c b a g f ]
\set subdivideBeams = ##t
b32^"subdivision enabled"[ a g f c' b a g f e d' c b a g f ]
" }
-
+% begin verbatim
% Automatic beams two per two in 4/4 or 2/2 time signature
% _____
% Default | | | |
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms
+%% Tags: rhythms, breaks
\version "2.11.35"
\header { texidoc = "
force the line break, by setting the @code{#'breakable} property. See
also in the manual the \"Line Breaking\" and \"Manual beams\" sections.
" }
-
+% begin verbatim
\layout { ragged-right= ##t }
\relative c'' {
staff lines are in a lower layer than most other grobs, this white box
will not overlap any other grob.
" }
-
+% begin verbatim
\paper
{
ragged-right = ##t
--- /dev/null
+positioning-segno-and-coda-with-line-break.ly
+beam-across-line-breaks.ly
+adding-and-extra-staff-at-a-line-break.ly
Breathing signs are available in different tastes: commas (default),
ticks, vees and `railroad tracks' (caesura).
" }
-
+% begin verbatim
{
%% Modern notation:
\new Staff {
rectangle. Make sure to put the Hairpin in a lower layer than the Text
Markup to actually draw the rectangle above the hairpin.
" }
-
+% begin verbatim
\score
{
\relative c' {
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: expressive-marks
+%% Tags: expressive-marks, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
snippet should present an optically pleasing combination of railtracks
and a fermata.
" }
-
+% begin verbatim
{
\context Voice {
c''2.
The example also illustrates how to use modify the way an object
normally is printed, using some Scheme code.
" }
-
+% begin verbatim
hairpinWithCenteredText = #(define-music-function
(parser location text) (markup?)
#{
To make the \\flageolet circle smaller you can use the following scheme
code (found in the Lilypond-user-archive)
" }
-
+% begin verbatim
F = #(let ((m (make-music 'ArticulationEvent
'articulation-type "flageolet")))
(set! (ly:music-property m 'tweaks)
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: simultaneous-notes, editorial-and-educational-use
+%% Tags: simultaneous-notes, editorial-and-educational-use, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
The code for the chord example shown: @code{}
" }
-
+% begin verbatim
\header{
title = "Modify an individual notehead's size in a chord"
}
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: tweaks-and-overrides
+\version "2.11.35"
+
+\header { texidoc = "
+The @code{\\applyOutput} command gives you the ability to tune any
+layout object, in any context. It requires a Scheme function with three
+arguments; advanced users can write it quite easily, whereas new users
+may want to use pre-defined functions such as this snippet, or the
+example in the manual.
+" }
+% begin verbatim
+% ****************************************************************
+% ly snippet:
+% ****************************************************************
+
+\layout {
+ ragged-right = ##t
+}
+
+#(define (mc-squared gr org cur)
+ (let*
+ (
+ (ifs (ly:grob-interfaces gr))
+ (sp (ly:grob-property gr 'staff-position))
+ )
+ (if (memq 'note-head-interface ifs)
+ (begin
+ (ly:grob-set-property! gr 'stencil ly:text-interface::print)
+ (ly:grob-set-property! gr 'font-family 'roman)
+ (ly:grob-set-property! gr 'text
+ (make-raise-markup -0.5
+ (case sp
+ ((-5) (make-simple-markup "m"))
+ ((-3) (make-simple-markup "c "))
+ ((-2) (make-smaller-markup (make-bold-markup "2")))
+ (else (make-simple-markup "bla"))
+ ))))
+ )))
+
+\context Voice \relative c' {
+ \stemUp
+ \set autoBeaming = ##f
+
+ { <d f g b>8
+
+ \applyOutput #'Voice #mc-squared
+ <d f g b>
+ }
+}
+
+% ****************************************************************
+% end ly snippet
+% ****************************************************************
" }
-
+% begin verbatim
\score{
\relative c'{
c( d e c) |
" }
-
+% begin verbatim
music = \chordmode {
c1/c cis/cis
b/b bis/bis bes/bes
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: editorial-and-educational-use, text
+%% Tags: editorial-and-educational-use, text, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
The default font families for text can be overridden with
@code{make-pango-font-tree}.
" }
-
+% begin verbatim
\paper {
% change for other default global staff size.
myStaffSize = #20
" }
-
+% begin verbatim
upper = \relative c'' {
c1 d e f
}
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: staff-notation
+%% Tags: staff-notation, tweaks-and-overrides, paper-and-layout
\version "2.11.35"
\header { texidoc = "
In order to change staff sizes, both @code{staff-space} and
@code{fontSize} must be scaled.
" }
-
+% begin verbatim
{
\new Staff \relative c'' { \dynamicDown c8 \ff c c c c c c c }
}
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms
+%% Tags: rhythms, contexts-and-engravers
\version "2.11.35"
\header { texidoc = "
ly:make-moment callback. The second argument has to be the same as the
second argument of \\compressMusic.
" }
-
+% begin verbatim
\layout {
\context { \Score
\remove "Timing_translator"
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms, vocal-music, ancient-notation
+%% Tags: rhythms, vocal-music, ancient-notation, contexts-and-engravers
\version "2.11.35"
\header { texidoc = "
This form of notation is used for the chant of the Psalms, where verses
aren't always the same length.
" }
-
+% begin verbatim
stemon = { \override Staff.Stem #'transparent = ##f }
stemoff = { \override Staff.Stem #'transparent = ##t }
The property @code{chordNameExceptions} can used to store a list of
special notations for specific chords.
" }
-
+% begin verbatim
% 7sus4 denoted with ^7 wahh
chExceptionMusic = {
<c f g bes>1-\markup { \super "7" "wahh" }
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: pitches, staff-notation, editorial-and-educational-use
+%% Tags: pitches, staff-notation, editorial-and-educational-use, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
end-of-line-invisible: \\set Staff.explicitClefVisibility =
#end-of-line-invisible } The default behaviour can be recovered with
@code{\\unset Staff.explicitClefVisibility}
-
+% begin verbatim
The following examples show the possibilities when setting these
properties manually. On the first line, the manual changes preserve the
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: paper-and-layout
+\header {
+ texidoc = "Clipping snippets from a finished score
+
+Notes:
+
+@itemize @bullet
+@item If system starts and ends are included, they include extents of the System grob, eg. instrument names.
+@item Grace notes at the end point of the region are not included
+@item Regions can span multiple systems. In this case, multiple EPS files are generated.
+@end itemize
+
+This file needs to be run separately with @code{-dclip-systems}; the
+collated-files.html of the regression test does not adequately show
+the results.
+
+The result will be files named
+@file{@var{base}-from-@var{start}-to-@var{end}[-@var{count}].eps}.
+"
+
+}
+% begin verbatim
+\version "2.11.35"
+
+#(ly:set-option 'clip-systems)
+
+#(set! output-count 1)
+
+origScore = \score{
+ \relative {
+ \set Staff.instrumentName = #"bla"
+ c1
+ d
+ \grace c16
+ e1
+ \key d\major
+
+ f
+ \break \clef bass
+ g,
+ fis
+ }
+}
+
+\book {
+ \score {
+ \origScore
+ \layout {
+
+ %% each clip-region is a (START . END) pair
+ %% where both are rhythmic-locations.
+
+ %% (make-rhythmic-locations BAR-NUMBER NUM DEN)
+ %% means NUM/DEN whole-notes into bar numbered BAR-NUMBER
+
+ clip-regions
+ = #(list
+ (cons
+ (make-rhythmic-location 2 0 1)
+ (make-rhythmic-location 4 0 1))
+
+ (cons
+ (make-rhythmic-location 0 0 1)
+ (make-rhythmic-location 4 0 1))
+
+ (cons
+ (make-rhythmic-location 0 0 1)
+ (make-rhythmic-location 6 0 1))
+ )
+ }
+ }
+}
+
+#(set! output-count 0)
+#(ly:set-option 'clip-systems #f)
+
+\book {
+ \score { \origScore }
+ \markup { \bold \fontsize #6 clips }
+ \score {
+ \lyrics {
+ \markup { from-2.0.1-to-4.0.1-clip.eps }
+ \markup { \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps" (ly:parser-output-name parser)) }
+ }
+ }
+}
Clusters are a device to denote that a complete range of notes is to be
played.
" }
-
+% begin verbatim
\layout {
ragged-right = ##t
}
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: editorial-and-educational-use
+%% Tags: editorial-and-educational-use, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
200 colors are available, see the \"List of Colors\" Appendix in the
Manual).
" }
-
+% begin verbatim
\relative {
\override Accidental #'color = #darkgreen
\override Beam #'color = #cyan
Some dynamics may involve text indications (such as \"più forte\",
\"piano subito\", etc.). They can be produced using a \\markup bloc.
" }
-
+% begin verbatim
\layout{ragged-right = ##t}
piuf = \markup { \italic "molto" \dynamic "f" }
" }
-
+% begin verbatim
musicUp = { \time 4/4
\relative c'' {
a4 c4.(g8) a4 |
measure groping indications, the appropriate snippet in this database.)
" }
-
+% begin verbatim
#(define (compound-time one two num)
(markup #:override '(baseline-skip . 0) #:number
(#:line ((#:column (one num)) #:vcenter "+" (#:column (two num))))))
example, the 9/8 measure is subdivided in 2, 2, 2 and 3. This is
passed to @code{set-time-signature} as the third argument @code{(2 2 2
3)}
-
+% begin verbatim
" }
--- /dev/null
+creating-blank-staves.ly
+chant-or-psalms-notation.ly
+adding-a-figured-bass-above-or-below-the-notes.ly
+adding-an-extra-staff.ly
+changing-time-signatures-inside-a-polymetric-section-using--compressmusic.ly
+engravers-one-by-one.ly
+adding-and-extra-staff-at-a-line-break.ly
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms
+%% Tags: rhythms, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
print a bracket) or #'if-no-beam (only print a bracket if there is no
beam).
" }
-
+% begin verbatim
mus = \relative c'' {
\times 2/3 {c16 [ d e } f8]
\times 2/3 {c8 d e }
This example creates the rhythm used throughout Mars, from The Planets,
by Gustav Holst.
" }
-
+% begin verbatim
#(define (make-note-req p d)
(make-music 'NoteEvent
'duration d
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: staff-notation, editorial-and-educational-use
+%% Tags: staff-notation, editorial-and-educational-use, contexts-and-engravers, paper-and-layout
\version "2.11.35"
\header { texidoc = "
the @code{Staff} context the @code{Time_signature_engraver}, the
@code{Clef_engraver} and the @code{Bar_engraver}.
" }
-
+% begin verbatim
\header {
tagline = ""
}
-
+% begin verbatim
#(set-global-staff-size 20)
\score {
BROKEN (?) IN 2.11, COMMENTED OUT.
" }
-
+% begin verbatim
{ c'4 }
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: expressive-marks, text
+%% Tags: expressive-marks, text, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
Override some properties of the TextSpanner object to modify its
output.
" }
-
+% begin verbatim
\relative c''{
\override TextSpanner #'edge-text = #'("bla" . "blu")
a \startTextSpan
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: ancient-notation
+%% Tags: ancient-notation, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
Custodes may be engraved in various styles.
" }
-
+% begin verbatim
\layout {
\context {
\Staff
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: vocal-music, piano-music, strings
+%% Tags: vocal-music, piano-music, strings, midi
\version "2.11.35"
\header { texidoc = "
Problem: How to know which MidiInstrument would be best for your
composition? Solution: A Lilypond demo file.
" }
-
+% begin verbatim
%\version "2.11.35"
basemelodie = { c'4. \mf g c'16 b' c'' d'' | e'' d'' e'' f'' g''4 g'''4 r | r1 }
title = "Demo of all midi sounds"
arranger = "Myself"
}
-
+% begin verbatim
\score {
\new Staff <<
\new Voice { \melodie
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: text
+%% Tags: text, paper-and-layout, titles
\version "2.11.35"
\header { texidoc = "
A demonstration of all headers.
" }
-
+% begin verbatim
\header {
copyright = "copyright"
title = "title"
source = "urtext"
}
-
+% begin verbatim
\score {
\relative c'' { c1 c1 c1 c1 }
copyright = "localcopyright"
}
}
-
+% begin verbatim
new approach to music theory and language. This snippet shows how to
achieve such notation rules with LilyPond.
" }
-
+% begin verbatim
% thanks to Rune Zedeler for this cool function :)
webernAccidentals = {
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
The @code{print-function} can be overridden to draw a box around an
arbitrary grob.
" }
-
+% begin verbatim
\relative c'' {
\override TextScript #'stencil =
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
You can tweak the printing of your circles by setting some properties
such as #'thickness, #'circle-padding or #'font-size.
" }
-
+% begin verbatim
\relative c'{
c1
\set Score.markFormatter
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: contexts-and-engravers
+\version "2.11.35"
+
+\header { texidoc = "
+The notation problem, creating a certain symbol, is handled by plugins.
+Each plugin is called an Engraver. In this example, engravers are
+switched on one by one, in the following order:
+
+- note heads
+
+
+- staff symbol,
+
+
+- clef,
+
+
+- stem,
+
+
+- beams, slurs, accents,
+
+
+- accidentals, bar lines, time signature, and key signature.
+
+
+
+Engravers are grouped. For example, note heads, slurs, beams etc. form
+a Voice context. Engravers for key, accidental, bar, etc. form a Staff
+context.
+
+
+You may only see the first example in this document; please download
+this snippet and run it from your own computer.
+" }
+% begin verbatim
+%% sample music
+topVoice = \relative c' {
+ \key d\major
+ es8([ g] a[ fis])
+ b4
+ b16[-. b-. b-. cis-.]
+ d4->
+}
+
+botVoice = \relative c' {
+ \key d\major
+ c8[( f] b[ a)]
+ es4
+ es16[-. es-. es-. fis-.]
+ b4->
+}
+
+hoom = \relative c {
+ \key d \major
+ \clef bass
+ g8-. r
+ r4
+ fis8-.
+ r8
+ r4
+ b'4->
+}
+
+pah = \relative c' {
+ r8 b-.
+ r4
+ r8 g8-.
+ r16 g-. r8
+ \clef treble
+ fis'4->
+}
+
+%
+% setup for Request->Element conversion. Guru-only
+%
+
+MyStaff =\context {
+ \type "Engraver_group"
+ \name Staff
+
+ \description "Handles clefs, bar lines, keys, accidentals. It can contain
+@code{Voice} contexts."
+
+
+ \consists "Output_property_engraver"
+
+ \consists "Font_size_engraver"
+
+ \consists "Volta_engraver"
+ \consists "Separating_line_group_engraver"
+ \consists "Dot_column_engraver"
+
+ \consists "Ottava_spanner_engraver"
+ \consists "Rest_collision_engraver"
+ \consists "Piano_pedal_engraver"
+ \consists "Piano_pedal_align_engraver"
+ \consists "Instrument_name_engraver"
+ \consists "Grob_pq_engraver"
+ \consists "Forbid_line_break_engraver"
+ \consists "Axis_group_engraver"
+
+ \consists "Pitch_squash_engraver"
+
+ \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
+ extraVerticalExtent = ##f
+ verticalExtent = ##f
+ localKeySignature = #'()
+
+ % explicitly set instrument, so we don't get
+ % weird effects when doing instrument names for
+ % piano staves
+
+ instrumentName = #'()
+ shortInstrumentName = #'()
+
+ \accepts "Voice"
+}
+
+
+MyVoice = \context {
+ \type "Engraver_group"
+ \name Voice
+
+ \description "
+ Corresponds to a voice on a staff. This context handles the
+ conversion of dynamic signs, stems, beams, super- and subscripts,
+ slurs, ties, and rests.
+
+ You have to instantiate this explicitly if you want to have
+ multiple voices on the same staff."
+
+ localKeySignature = #'()
+ \consists "Font_size_engraver"
+
+ % must come before all
+ \consists "Output_property_engraver"
+ \consists "Arpeggio_engraver"
+ \consists "Multi_measure_rest_engraver"
+ \consists "Text_spanner_engraver"
+ \consists "Grob_pq_engraver"
+ \consists "Note_head_line_engraver"
+ \consists "Glissando_engraver"
+ \consists "Ligature_bracket_engraver"
+ \consists "Breathing_sign_engraver"
+ % \consists "Rest_engraver"
+ \consists "Grace_beam_engraver"
+ \consists "New_fingering_engraver"
+ \consists "Chord_tremolo_engraver"
+ \consists "Percent_repeat_engraver"
+ \consists "Slash_repeat_engraver"
+
+%{
+ Must come before text_engraver, but after note_column engraver.
+
+%}
+ \consists "Text_engraver"
+ \consists "Dynamic_engraver"
+ \consists "Fingering_engraver"
+
+ \consists "Script_column_engraver"
+ \consists "Rhythmic_column_engraver"
+ \consists "Cluster_spanner_engraver"
+ \consists "Tie_engraver"
+ \consists "Tie_engraver"
+ \consists "Tuplet_engraver"
+ \consists "Note_heads_engraver"
+ \consists "Rest_engraver"
+
+ \consists "Skip_event_swallow_translator"
+}
+
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+
+MyStaff = \context {
+ \MyStaff
+ \consists "Staff_symbol_engraver"
+}
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyStaff = \context {
+ \MyStaff
+ \consists "Clef_engraver"
+ \remove "Pitch_squash_engraver"
+}
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyVoice = \context {
+ \MyVoice
+ \consists "Stem_engraver"
+}
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyVoice = \context {
+ \MyVoice
+ \consists "Beam_engraver"
+}
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyVoice= \context {
+ \MyVoice
+ \consists "Phrasing_slur_engraver"
+ \consists "Slur_engraver"
+ \consists "Script_engraver"
+}
+
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyStaff = \context {
+ \MyStaff
+ \consists "Bar_engraver"
+ \consists "Time_signature_engraver"
+}
+
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
+MyStaff = \context {
+ \MyStaff
+ \consists "Accidental_engraver"
+ \consists "Key_engraver"
+}
+\score {
+ \topVoice
+ \layout {
+ \context { \MyStaff }
+ \context { \MyVoice }
+ }
+}
+
notes each time): i.e. to get different random notes patterns, just
change this number.
" }
-
+% begin verbatim
\score {
{ #(let ((random-state (seed->random-state (current-time))))
(ly:export
\header { texidoc = "
Use a glissando without final note. Contemporary glissando !
" }
-
+% begin verbatim
\relative c'' {
\override Glissando #'style = #'zigzag
\time 3/4
\addlyrics { unHideNotes cadenzaOff, skip_and_\bar \skip 4 }
\layout{raggedright = ##t}
\header { tagline="" }
-
+% begin verbatim
has been included to show the beat of this piece (which is a template
of a real balkan song!).
" }
-
+% begin verbatim
#(define (compound-time one two three four five six seven eight nine ten num)
(markup #:override '(baseline-skip . 0) #:number
(#:line ((#:column (one num)) #:vcenter "+" (#:column (two num)) #:vcenter "+" (#:column (three num)) #:vcenter "+" (#:column (four num)) #:vcenter "+" (#:column (five num)) #:vcenter "+" (#:column (six num)) #:vcenter "+" (#:column (seven num)) #:vcenter "+" (#:column (eight num)) #:vcenter "+" (#:column (nine num)) #:vcenter "+" (#:column (ten num))))))
\header { texidoc = "
This can be achieved by separating those syllables by tildes.
" }
-
+% begin verbatim
\lyrics {
wa~o~a
}
The \\markup command is quite versatile. In this snippet, it contains a
\\score bloc instead of texts or marks.
" }
-
+% begin verbatim
tuning = \markup {
\score {
\new Staff \with {
subtitle = "Suite IV"
subsubtitle = \markup { "Originalstimmung:" \tuning }
}
-
+% begin verbatim
\relative {
\time 4/8
\times 2/3 { c'8 d e } \times 2/3 {c d e}
\header {
texidoc = "Arrows can be applied to text-spanners and line-spanners (such as the Glissando)"
}
-
+% begin verbatim
\version "2.11.35"
\paper {
microtonal alterations."
}
-
+% begin verbatim
\version "2.11.35"
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
introducing a tie in a different voice, and blanking the first up-stem
in that voice, the tie appears to cross voices.
" }
-
+% begin verbatim
\relative c'' {
<< {
\once \override Stem #'transparent = ##t
texidoc = "Text that can spread over pages is entered with the
@code{\\markuplines} command."
}
-
+% begin verbatim
#(set-default-paper-size "a6")
#(define-markup-list-command (paragraph layout props args) (markup-list?)
--- /dev/null
+demo-midiinstruments.ly
" }
-
+% begin verbatim
\relative c' {
\new Staff {
\set Staff.keySignature =
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
with @code{lilypond-book}. Another possibility is to append the
version number to the doc-string, in this manner:
" }
-
+% begin verbatim
\score { \context Lyrics {
\override Score.RehearsalMark #'self-alignment-X = #LEFT
\mark #(ly:export (string-append "Processed with LilyPond version " (lilypond-version)))
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: spacing
+\version "2.11.35"
+
+\header {
+ texidoc = "Page labels may be placed inside music or at top-level,
+and refered to in markups."
+}
+% begin verbatim
+#(set-default-paper-size "a6")
+
+#(define-markup-command (toc-line layout props label text) (symbol? markup?)
+ (interpret-markup layout props
+ (markup #:fill-line (text #:page-ref label "8" "?"))))
+
+\book {
+ \markup \huge \fill-line { \null "Title Page" \null }
+
+ \pageBreak
+
+ \label #'toc
+ \markup \column {
+ \large \fill-line { \null "Table of contents" \null }
+ \toc-line #'toc "Table of contents"
+ \toc-line #'firstScore "First Score"
+ \toc-line #'markA "Mark A"
+ \toc-line #'markB "Mark B"
+ \toc-line #'markC "Mark C"
+ \toc-line #'unknown "Unknown label"
+ }
+
+ \pageBreak
+
+ \label #'firstScore
+ \score {
+ { c'2 c'
+ \mark \markup { A (page \concat { \page-ref #'markA "0" "?" ) }} \label #'markA
+ c' c'
+ \pageBreak
+ \mark "B" \label #'markB
+ d' d'
+ d' d'
+ \once \override Score . RehearsalMark #'break-visibility = #begin-of-line-invisible
+ \mark "C" \label #'markC
+ }
+ \header { piece = "First score" }
+ }
+}
\ No newline at end of file
--- /dev/null
+creating-blank-staves.ly
+aligning-and-centering-instrument-names.ly
+toc.ly
+alignment-vertical-spacing.ly
+demonstrating-all-headers.ly
+changing-the-staff-size.ly
+clip-systems.ly
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: repeats
+%% Tags: repeats, breaks
\version "2.11.35"
\header { texidoc = "
documented in this snippet, where the coda will remain on the same
line.
" }
-
+% begin verbatim
{
\clef treble
\key g \major
note needs to be canceled. To change this behavior, set the
extraNatural property to \"false\" in the Staff context.
" }
-
+% begin verbatim
\relative {
aeses'4 aes ais a
\set Staff.extraNatural = ##f
altered by setting to \"false\" the printKeyCancellation property in
the Staff context.
" }
-
+% begin verbatim
\relative {
\key d \major
a b cis d
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: rhythms, editorial-and-educational-use
+%% Tags: rhythms, editorial-and-educational-use, tweaks-and-overrides
\version "2.11.35"
\header { texidoc = "
is not a quarter note, replace the r4 in the definitions by a rest of
the appropriate duration).
" }
-
+% begin verbatim
% Macro to print single slash
rs = {
\once \override Rest #'stencil = #ly:percent-repeat-item-interface::beat-slash
--- /dev/null
+alignment-vertical-spacing.ly
+vertically-aligning-ossias-and-lyrics.ly
+page-label.ly
+adjusting-lyrics-vertical-spacing.ly
--- /dev/null
+aligning-and-centering-instrument-names.ly
+demonstrating-all-headers.ly
+adding-the-current-date-to-a-score.ly
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR!
+%% Tags: paper-and-layout
+\version "2.11.35"
+
+\header {
+ texidoc = "A table of contents is included using
+@code{\\markuplines \\table-of-contents}. The toc items are added with
+the @code{\\tocItem} command."
+}
+% begin verbatim
+#(set-default-paper-size "a6")
+
+\book {
+ \markuplines \table-of-contents
+ \pageBreak
+
+ \tocItem \markup "The first score"
+ \score {
+ {
+ c'1 \pageBreak
+ \mark "A" \tocItem \markup "Mark A"
+ d'
+ }
+ }
+ \pageBreak
+ \tocItem \markup "The second score"
+ \score {
+ { e' }
+ \header { piece = "Second score" }
+ }
+}
\ No newline at end of file
In this manner, the most natural enharmonic notes are chosen in this
example.
" }
-
+% begin verbatim
#(define (naturalise-pitch p)
(let* ((o (ly:pitch-octave p))
(a (ly:pitch-alteration p))
--- /dev/null
+creating-text-spanners.ly
+altering-the-number-of-stems-in-a-beam.ly
+controlling-tuplet-bracket-visibility.ly
+caesura-railtracks-with-fermata.ly
+coloring-objects.ly
+rhythmic-slashes.ly
+changing-the-staff-size.ly
+changing-the-default-text-font-family.ly
+vertically-aligning-ossias-and-lyrics.ly
+clefs-commonly-tweaked-properties.ly
+custodes.ly
+alignment-vertical-spacing.ly
+changing-an-individual-notes-size-in-a-chord.ly
+changing-properties-for-individual-grobs.ly
%% Do not edit this file; it is auto-generated from LSR!
%% Tags: other
-%% Do not edit this file; it is auto-generated from LSR!
\version "2.11.35"
\header { texidoc = "
" }
-
+% begin verbatim
\paper {
ragged-right = ##t
}
"
}
-
+% begin verbatim
% Cyrillic font
bulgarian = \lyricmode {
Жълтата дюля беше щастлива, че пухът, който цъфна, замръзна като гьон.
%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: vocal-music
+%% Tags: vocal-music, tweaks-and-overrides, spacing
\version "2.11.35"
\header { texidoc = "
elements (e.g. lyrics) positioning, but also for musical contents such
as ossias.
" }
-
+% begin verbatim
\paper {
ragged-right = ##t
}
texidoc = "By adding @code{Volta_engraver}, repeat brackets
can be put over staves other than the topmost one in a score."
}
-
+% begin verbatim
\version "2.11.36"
vmus = {