@macro lsrdir{DIR}
@ifhtml
-@uref{source/input/lsr/snippets\DIR\.html,\DIR\}
+@uref{source/input/lsr/snippets/\DIR\.html,\DIR\}
@end ifhtml
@ifnothtml
\DIR\
* accessory::
* accidental::
* accelerando::
+* acciaccatura::
* adagio::
* allegro::
* alteration::
* sextuplet::
* shake::
* sharp::
-* short appoggiatura::
* sixteenth note::
* sixteenth rest::
* sixth::
Increase tempo.
+@node acciaccatura
+@section acciaccatura
+
+A grace note which takes its time from the rest or note preceding the
+principal note to which it is attached. The acciaccatura is drawn as a
+small eighth note (quaver) with a line drawn through the flag and
+stem.
+
+@seealso
+
+@ref{appoggiatura}, @ref{grace notes}, @ref{ornament}.
+
@node adagio
@section adagio
I: intervallo dissonante, dissonanza,
F: dissonance,
D: Dissonanz,
-NL: dissonant interval; dissonant,
+NL: dissonant interval, dissonant,
DK: dissonerende interval, dissonans,
S: dissonans,
FI: dissonanssi, dissonoiva intervalli, riitasointi.
Notes printed in small types to indicate that their time values are not
counted in the rhythm of the bar.
-@ref{appoggiatura}.
+@seealso
+
+@ref{acciaccatura}, @ref{appoggiatura}, @ref{grace notes}, @ref{ornament}.
@node grand staff
@seealso
-@ref{appoggiatura}.
+@ref{acciaccatura}, @ref{appoggiatura}, @ref{grace notes},
+@ref{ornament}.
@node ninth
@seealso
-@ref{appoggiatura}.
+@ref{acciaccatura}, @ref{appoggiatura}, @ref{grace notes}.
@node ossia
@ref{accidental}.
-@node short appoggiatura
-@section short appoggiatura
-
-@seealso
-
-@ref{appoggiatura}.
-
-
@node sixteenth note
@section sixteenth note
@menu
* Titles and headers::
* MIDI output::
+* other midi::
@end menu
@end example
+@node other midi
+@section other midi
+
+Micro tones are also exported to the MIDI file.
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{LedgerLineSpanner},
@internalsref{NoteHead}.
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
@refbugs
ceseh ces ceh c cih cis cisih
@end lilypond
-Micro tones are also exported to the MIDI file.
-
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{preventing-extra-naturals-from-being-automatically-added.ly}
-@lilypondfile[lilyquote,ragged-right,texidoc]
-{dodecaphonic-style-accidentals-for-each-note-including-naturals.ly}
-
-@lilypondfile[lilyquote,ragged-right,texidoc]{makam.ly}
-
@seealso
Music Glossary: @rglos{sharp}, @rglos{flat}, @rglos{double sharp},
@ref{Musica ficta accidentals},
@ref{Note names in other languages}.
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches},
+@lsr{Pitches,
+dodecaphonic-style-accidentals-for-each-note-including-naturals.ly},
+@lsr{Pitches, makam.ly}.
+
@refbugs
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
@node Changing multiple pitches
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
@node Transpose
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{transposing-pitches-with-minimum-accidentals-smart-transpose.ly}
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{TransposedMusic}.
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{clefs-commonly-tweaked-properties.ly}
Notation Reference: @ref{Ancient clefs}.
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{Clef}.
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly}
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{non-traditional-key-signatures.ly}
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{dodecaphonic-style-accidentals-for-each-note-including-naturals.ly}
Learning Manual: @rlearning{Accidentals and key signatures}.
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{KeyCancellation},
@internalsref{KeySignature}, @internalsref{Key_engraver}.
Music Glossary: @rglos{ottava}.
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{OttavaBracket}.
Notation Reference: @ref{Quoting other voices}, @ref{Transpose}.
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
@node Automatic accidentals
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{Accidental_engraver},
@internalsref{Accidental}, @internalsref{AccidentalSuggestion},
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{adding-ambiti-per-voice.ly}
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{ambiti-multiple-voices.ly}
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{Ambitus},
@internalsref{AmbitusLine}, @internalsref{AmbitusNoteHead},
Notation Reference: @ref{Setting the staff size}.
-Snippets: @lsrdir{pitches},
+Snippets: @lsrdir{Pitches},
Internals Reference: @internalsref{NoteHead}.
@commonprop
-@lilypondfile[lilyquote,ragged-right,texidoc]
+@lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
{applying-noteheads-styles-depending-on-the-step-of-the-scale.ly}
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
@node Improvisation
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Internals Reference: @internalsref{Pitch_squash_engraver},
@internalsref{Voice}.
@seealso
-Snippets: @lsrdir{pitches}.
+Snippets: @lsrdir{Pitches}.
Notation Reference: @ref{Note head styles}.
\override textscript #'padding = #3
c1^"hi"
-* LilyPond input should be produce via
+* LilyPond input should be produced via
@lilypond[verbatim,quote,ragged-right]
with `fragment' and `relative=2' optional.
@lilypondfile[quote,ragged-right,line-width=16\cm,staffsize=16]
{pitches-headword.ly}
+* LSR snippets are linked with
+ @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
+ {filename.ly}
+
* Avoid long stretches of input code. Noone is going to read them
in print. Please create a smaller example. (the smaller
example does not need to be minimal, however)
import getopt
program_name = 'lys-to-tely'
+
include_snippets = '@lysnippets'
+fragment_options = 'printfilename,texidoc'
def help ():
sys.stdout.write (r"""Usage: %(program_name)s [OPTIONS]... LY-FILE...
Construct tely doc from LY-FILEs.
Options:
- -h, --help print this help
- -o, --output=NAME write tely doc to NAME
- -t, --title=TITLE set tely doc title TITLE
- --template=TEMPLATE use TEMPLATE as Texinfo template file,
+ -h, --help print this help
+ -f, --fragment-options=OPTIONS use OPTIONS as lilypond-book fragment
+ options
+ -o, --output=NAME write tely doc to NAME
+ -t, --title=TITLE set tely doc title TITLE
+ --template=TEMPLATE use TEMPLATE as Texinfo template file,
instead of standard template; TEMPLATE should contain a command
- '%(include_snippets)s' to tell where to insert LY-FILEs. When this option
- is used, NAME and TITLE are ignored
+ '%(include_snippets)s' to tell where to insert LY-FILEs. When this
+ option is used, NAME and TITLE are ignored.
""" % vars ())
sys.exit (0)
-(options, files) = getopt.getopt (sys.argv[1:], 'hn:t:',
- ['help', 'name=', 'title=', 'template='])
+(options, files) = getopt.getopt (sys.argv[1:], 'f:hn:t:',
+ ['fragment-options=', 'help', 'name=', 'title=', 'template='])
name = "ly-doc"
title = "Ly Doc"
name = a
elif o == '-t' or o == '--title':
title = a
+ elif o == '-f' or o == '--fragment-options':
+ fragment_options = a
elif o == '--template':
template = open (a, 'r').read ()
else:
- raise 'unknown opt ', o
+ raise Exception ('unknown option: ' + o)
def name2line (n):
# UGR
@end html
@end ifhtml
-@lilypondfile[printfilename,texidoc]{%s}""" % (n, n)
+@lilypondfile[%s]{%s}""" % (n, fragment_options, n)
return s
if files:
import sys
import os
import glob
+import re
USAGE = ''' Usage: makelsr.py LSR_SNIPPETS_DIR
This script must be run from top of the source tree;
TAGS.extend (['vocal-music', 'chords', 'piano-music',
'percussion', 'guitar', 'strings', 'bagpipes', 'ancient-notation'])
-TAGS.append ('other')
+# other
+TAGS.extend (['contexts-and-engravers', 'tweaks-and-overrides', 'paper-and-layout', 'breaks',
+'spacing', 'midi', 'titles', 'other'])
def exit_with_usage (n=0):
sys.stderr.write (USAGE)
unsafe = []
unconverted = []
+# mark the section that will be printed verbatim by lilypond-book
+end_header_re = re.compile ('(\\header {.*?}\n)\n', re.M | re.S)
+
+def mark_verbatim_section (ly_code):
+ return end_header_re.sub ('\\1% begin verbatim\n', ly_code)
+
def copy_ly (srcdir, name, tags):
global unsafe
global unconverted
dest = os.path.join (DEST, name)
f = open (dest, 'w')
f.write (LY_HEADER % ', '.join (tags))
- f.write (open (os.path.join (srcdir, name)).read ())
+ f.write (mark_verbatim_section (open (os.path.join (srcdir, name)).read ()))
f.close ()
e = os.system('convert-ly -e ' + dest)
if e:
GENERATED_ITELY_FILES = $(IN_ITELY_FILES:%-intro.itely=$(outdir)/%.itely)
$(outdir)/%.itely: %-intro.itely %.snippet-list
- xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py --name=$@ --template=$< < $(filter %.snippet-list, $^)
+ xargs $(PYTHON) $(buildscript-dir)/lys-to-tely.py -f printfilename,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^)
$(outdir)/snippets.texi: snippets.tely $(GENERATED_ITELY_FILES)
$(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) $<
%% 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
+@node Contexts and engravers
+@unnumbered Contexts and engravers
+
+@lysnippets
+
--- /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
+@node MIDI
+@unnumbered MIDI
+
+@lysnippets
+
--- /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" }
+ }
+}
--- /dev/null
+@node Paper and layout
+@unnumbered Paper and layout
+
+@lysnippets
+
--- /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
@iftex
@afourpaper
+@c don't replace quotes with directed quotes
+@tex
+\gdef\SETtxicodequoteundirected{Foo}
+\gdef\SETtxicodequotebacktick{Bla}
+@end tex
@end iftex
@finalout
-@node Top
-@top LilyPond examples
+@titlepage
+@title LilyPond
+@subtitle The music typesetter
+@titlefont{Snippets}
+@author LilyPond Snippet Repository contributors
+
+@vskip 20pt
This document shows LilyPond snippets from the
-@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}. It is
+in the public domain.
Snippets are grouped by tags; many tags match a section of LilyPond
notation manual.
}
}
@end lilypond
+@end titlepage
+
+@iftex
+@contents
+@end iftex
+
+@ifnottex
+@node Top
+@top LilyPond examples
+
+This document shows LilyPond snippets from the
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}. It is
+in the public domain.
+
+Snippets are grouped by tags; many tags match a section of LilyPond
+notation manual.
+
+In the HTML version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+@end ifnottex
@c maybe generate/update @menu and @includes automatically? --jm
@menu
* Ancient notation::
Other collections
+* Contexts and engravers::
+* Tweaks and overrides::
+* Paper and layout::
+* Titles::
+* Spacing::
+* MIDI::
* Other::
@end menu
-@contents
-
@include pitches.itely
@include rhythms.itely
@include expressive-marks.itely
@include percussion.itely
@include guitar.itely
@include strings.itely
+@c ignore empty section
@c @include bagpipes.itely
@include ancient-notation.itely
+@include contexts-and-engravers.itely
+@include tweaks-and-overrides.itely
+@include paper-and-layout.itely
+@include titles.itely
+@include spacing.itely
+@include midi.itely
@include other.itely
@bye
--- /dev/null
+@node Spacing
+@unnumbered Spacing
+
+@lysnippets
+
--- /dev/null
+alignment-vertical-spacing.ly
+vertically-aligning-ossias-and-lyrics.ly
+page-label.ly
+adjusting-lyrics-vertical-spacing.ly
changing-the-default-text-font-family.ly
how-to-put-ties-between-syllables-in-lyrics.ly
aligning-and-centering-instrument-names.ly
-utf-8.ly
blanking-staff-lines-using-the--whiteout-command.ly
combining-two-parts-on-the-same-staff.ly
adjusting-lyrics-vertical-spacing.ly
--- /dev/null
+@node Titles
+@unnumbered Titles
+
+@lysnippets
+
--- /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" }
+ }
+}
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
+@node Tweaks and overrides
+@unnumbered Tweaks and overrides
+
+@lysnippets
+
--- /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
}
+++ /dev/null
-%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: text
-\version "2.11.35"
-
-%% Edit this file using a Unicode aware editor, such as GVIM, GEDIT, Emacs
-
-%{
-
-You may have to install additional fonts.
-
-Red Hat Fedora
-
- taipeifonts fonts-xorg-truetype ttfonts-ja fonts-arabic \
- ttfonts-zh_CN fonts-ja fonts-hebrew
-
-Debian GNU/Linux
-
- apt-get install emacs-intl-fonts xfonts-intl-.* \
- ttf-kochi-gothic ttf-kochi-mincho \
- xfonts-bolkhov-75dpi xfonts-cronyx-100dpi xfonts-cronyx-75dpi
-%}
-
-\header {
-
- texidoc = "Various scripts may be used for texts (like titles and
-lyrics) introduced by entering them in UTF-8 encoding, and using a
-Pango based backend. Depending on the fonts installed, this fragment
-will render Bulgarian (Cyrillic), Hebrew, Japanese and Portuguese.
-
-"
-
-}
-
-% Cyrillic font
-bulgarian = \lyricmode {
- Жълтата дюля беше щастлива, че пухът, който цъфна, замръзна като гьон.
-}
-
-hebrew = \lyricmode {
- זה כיף סתם לשמוע איך תנצח קרפד עץ טוב בגן.
-}
-
-japanese = \lyricmode {
- いろはにほへど ちりぬるを
- わがよたれぞ つねならむ
- うゐのおくや まけふこえて
- あさきゆめみじ ゑひもせず
-}
-
-% "a legal song to you"
-portuguese = \lyricmode {
- à vo -- cê uma can -- ção legal
-}
-
-\paper {
- ragged-right = ##T
-}
-
-\relative {
- c2 d e f g f e
-}
-\addlyrics { \bulgarian }
-\addlyrics { \hebrew }
-\addlyrics { \japanese }
-\addlyrics { \portuguese }
%% 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 = {