@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex Triolennummer, Änderung
@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex grupos de valoración especial, modificación del número
@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex nolet, modification du chiffre
@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex gruppo irregolare, modifiche del numero del
@cindex numero del gruppo irregolare, modifiche del
@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex Tuplet number changes (連符の数の変更)
@funindex tupletSpannerDuration
@lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
-{entering-several-tuplets-using-only-one--times-command.ly}
+{entering-several-tuplets-using-only-one--tuplet-command.ly}
@cindex Tuplet number changes
+++ /dev/null
-horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly
+++ /dev/null
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.11
-\version "2.17.11"
-
-\header {
- lsrtags = "rhythms, syntax-and-expressions"
-
- texidoc = "
-The property @code{tupletSpannerDuration} sets how long each of the
-tuplets contained within the brackets after @code{\\tuplet} should last.
-Many consecutive tuplets can then be placed within a single
-@code{\\tuplet} expression, thus saving typing.
-
-There are several ways to set @code{tupletSpannerDuration}. The command
-@code{\\tupletSpan} sets it to a given duration, and clears it when
-instead of a duration @code{\\default} is specified. Another way is
-to use an optional argument with @code{\\tuplet}.
-"
- doctitle = "Entering several tuplets using only one \\tuplet command"
-} % begin verbatim
-
-
-
-\relative c' {
- \time 2/4
- \tupletSpan 4
- \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
- \tupletSpan \default
- \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
- \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
-}
--- /dev/null
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
+
+\header {
+ lsrtags = "rhythms, syntax-and-expressions"
+
+ texidoc = "
+The property @code{tupletSpannerDuration} sets how long each of the
+tuplets contained within the brackets after @code{\\times} should last.
+Many consecutive tuplets can then be placed within a single
+@code{\\times} expression, thus saving typing.
+
+There are several ways to set @code{tupletSpannerDuration}. The
+command @code{\\tupletSpan} sets it to a given duration, and clears it
+when instead of a duration @code{\\default} is specified. Another way
+is to use an optional argument with @code{\\tuplet}.
+
+"
+ doctitle = "Entering several tuplets using only one \\tuplet command"
+} % begin verbatim
+
+\relative c' {
+ \time 2/4
+ \tupletSpan 4
+ \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
+ \tupletSpan \default
+ \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
+ \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
+}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.27
-\version "2.17.27"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "headword"
doctitle = "Expressive headword"
} % begin verbatim
-\include "english.ly"
-
% NR 1.3 Expressive marks
% L. v. Beethoven, Op. 49 no. 1
% Piano sonata 19 - "Leichte Sonate"
% measures 1 - 12
-%\layout {
-% \context {
-% \Score
-% \override SpacingSpanner.base-shortest-duration =
-% #(ly:make-moment 1/20)
-% }
-%}
+\include "english.ly"
\new PianoStaff <<
<d' fs>4 \fermata
r8 r4 r8
}
-
>>
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "staff-notation, tweaks-and-overrides"
+
texidoc = "
-A glissando which extends into several @code{\\alternative} blocks
-can be simulated by adding a hidden grace note with a glissando
-at the start of each @code{\\alternative} block. The grace note
-should be at the same pitch as the note which starts the initial
-glissando. This is implemented here with a music function which
-takes the pitch of the grace note as its argument.
+A glissando which extends into several @code{\\alternative} blocks can
+be simulated by adding a hidden grace note with a glissando at the
+start of each @code{\\alternative} block. The grace note should be at
+the same pitch as the note which starts the initial glissando. This is
+implemented here with a music function which takes the pitch of the
+grace note as its argument.
Note that in polyphonic music the grace note must be matched with
corresponding grace notes in all other voices.
+
"
doctitle = "Extending glissandi across repeats"
} % begin verbatim
-
repeatGliss = #(define-music-function (parser location grace)
(ly:pitch?)
#{
\context TabVoice { \clef "moderntab" \music }
>>
>>
-}
\ No newline at end of file
+}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-% INSPIRATIONAL HEADER FOR LILYPOND DOCUMENTATION fretted-strings %
-% Passage from Johann Kaspar Mertz "Opern Revue, Op. 8, no. 17" %
-% on melodies from Bellini's "Norma" %
-%*****************************************************************%
-
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "headword"
- texidoc = ""
- doctitle = "headword"
-} % begin verbatim
-
+ texidoc = "
+Fretted headword
-\layout {
- \context {
- \Score
- \remove "Bar_number_engraver"
- }
-}
+"
+ doctitle = "Fretted headword"
+} % begin verbatim
%%%% shortcuts
% fingering orientations
\layout {
\context {
\Score
+ \remove "Bar_number_engraver"
\override Fingering.staff-padding = #'()
\omit TupletNumber
\override TupletBracket.bracket-visibility = ##f
}
}
- \midi { }
}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "rhythms, tweaks-and-overrides"
texidoc = "
-The @code{stencil} property of the Flag grob can be set to a custom scheme
-function to generate the glyph for the flag.
+The @code{stencil} property of the @code{Flag} grob can be set to a
+custom scheme function to generate the glyph for the flag.
"
doctitle = "Generating custom flags"
} % begin verbatim
-
#(define-public (weight-flag grob)
(let* ((stem-grob (ly:grob-parent grob X))
(log (- (ly:grob-property stem-grob 'duration-log) 2))
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "expressive-marks, staff-notation, tweaks-and-overrides"
+
+ texidoc = "
+@code{NoteColumn} grobs can be skipped over by glissandi.
+
+"
doctitle = "Glissandi can skip grobs"
- texidoc = "@code{NoteColumn} grobs can be skipped over by glissandi."
} % begin verbatim
-
\relative c' {
a2 \glissando
\once \override NoteColumn.glissando-skip = ##t
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "fretted-strings"
texidoc = "
Unlike glissandos, slides may go from an imprecise point of the
-fretboard to a specific fret. A good way to do that is to add a grace
-hidden note before the note which is actually played, as demonstrated
-in the following example.
+fretboard to a specific fret. A good way to do this is to add a hidden
+grace note before the note which is actually played, as demonstrated in
+the following example.
+
"
doctitle = "Guitar slides"
} % begin verbatim
-
%% Hide fret number: useful to draw slide into/from a casual point of
%% the fretboard.
hideFretNumber = {
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "editorial-annotations, fretted-strings"
texidoc = "
When using hammer-on or pull-off with chorded notes, only a single arc
-is drawn. However @q{double arcs} are possible by setting the
+is drawn. However @qq{double arcs} are possible by setting the
@code{doubleSlurs} property to @code{#t}.
"
doctitle = "Hammer on and pull off using chords"
} % begin verbatim
-
\new TabStaff {
\relative c' {
% chord hammer-on and pull-off
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "editorial-annotations, fretted-strings"
texidoc = "
-The arc of hammer-on and pull-off is upwards in voices one and three and
-downwards in voices two and four:
+The arc of hammer-on and pull-off is upwards in voices one and three
+and downwards in voices two and four:
"
doctitle = "Hammer on and pull off using voices"
} % begin verbatim
-
\new TabStaff {
\relative c' {
<< { \voiceOne g2( a) }
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "editorial-annotations, fretted-strings"
doctitle = "Hammer on and pull off"
} % begin verbatim
-
\new TabStaff {
\relative c' {
d4( e\2)
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.15
-\version "2.17.15"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "contemporary-notation, percussion, real-music, rhythms"
doctitle = "Heavily customized polymetric time signatures"
} % begin verbatim
-
melody = \relative c'' {
\set Staff.instrumentName = #"Bb Sop."
\key g \major
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
- lsrtags = "correction-wanted, expressive-marks, tweaks-and-overrides, version-specific"
+ lsrtags = "expressive-marks, tweaks-and-overrides, version-specific"
texidoc = "
Some dynamic expressions involve additional text, like @qq{sempre pp}.
position. Drawback: This has to be done manually each time you use that
dynamic markup...
-* Add some padding (@code{#:hspace 7.1}) into the
-definition of your custom dynamic mark, so that after lilypond
-center-aligns it, it is already correctly aligned. Drawback: The
-padding really takes up that space and does not allow any other markup
-or dynamics to be shown in that position.
+* Add some padding (@code{#:hspace 7.1}) into the definition of your
+custom dynamic mark, so that after lilypond center-aligns it, it is
+already correctly aligned. Drawback: The padding really takes up that
+space and does not allow any other markup or dynamics to be shown in
+that position.
-* Shift the dynamic script @code{\\once\\override ...X-offset = ..}.
+* Shift the dynamic script @code{\\once\\override ... .X-offset = ..}.
Drawback: @code{\\once\\override} is needed for every invocation!
* Set the dimensions of the additional text to 0 (using
* Set an explicit alignment inside the dynamic-script. By default, this
won't have any effect, only if one sets X-offset! Drawback: One needs
-to set @code{DynamicText #'X-offset}, which will apply to all dynamic
+to set @code{DynamicText.X-offset}, which will apply to all dynamic
texts! Also, it is aligned at the right edge of the additional text,
not at the center of pp.
+
+
+
+
"
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 }
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.24
-\version "2.17.24"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "editorial-annotations, expressive-marks, staff-notation, tweaks-and-overrides"
spacing, since using @code{extra-offset} does not change the bounding
box of the mark from its original value.
-
-
"
doctitle = "How to print two rehearsal marks above and below the same barline (method 1)"
} % begin verbatim
-
\relative c'{
- c d e f |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \mark \markup \center-column { \circle 1 \box A }
- g f e d |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \mark \markup \center-column { \flat { \bold \small \italic Fine. } }
- g f e d |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
- \mark \markup \center-column { \fermata \box z }
+ c d e f |
+ \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
+ \once \override Score.RehearsalMark.baseline-skip = #9
+ \mark \markup \center-column { \circle 1 \box A }
+ g f e d |
+ \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
+ \once \override Score.RehearsalMark.baseline-skip = #9
+ \mark \markup \center-column { \flat { \bold \small \italic Fine. } }
+ g f e d |
+ \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
+ \once \override Score.RehearsalMark.baseline-skip = #9
+ \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
+ \mark \markup \center-column { \fermata \box z }
}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
- lsrtags = "staff-notation, ancient-notation, really-cool"
+ lsrtags = "ancient-notation, really-cool, staff-notation"
+
texidoc = "
Incipits can be added using the instrument name grob, but keeping
separate the instrument name definition and the incipit definition.
+
"
doctitle = "Incipit"
} % begin verbatim
-
incipit =
#(define-music-function (parser location incipit-music) (ly:music?)
#{
\once \override Staff.InstrumentName.padding = #0.3
\once \override Staff.InstrumentName.stencil =
#(lambda (grob)
- (let* ((instrument-name (ly:grob-property grob 'long-text)))
- (set! (ly:grob-property grob 'long-text)
- #{ \markup
- \score
- {
- { \context MensuralStaff \with {
- instrumentName = #instrument-name
- } $incipit-music
- }
- \layout { $(ly:grob-layout grob)
- line-width = \indent
- indent =
- % primitive-eval is probably easiest for
- % escaping lexical closure and evaluating
- % everything respective to (current-module).
- #(primitive-eval
+ (let* ((instrument-name (ly:grob-property grob 'long-text)))
+ (set! (ly:grob-property grob 'long-text)
+ #{ \markup
+ \score
+ {
+ { \context MensuralStaff \with {
+ instrumentName = #instrument-name
+ } $incipit-music
+ }
+ \layout { $(ly:grob-layout grob)
+ line-width = \indent
+ indent =
+ % primitive-eval is probably easiest for
+ % escaping lexical closure and evaluating
+ % everything respective to (current-module).
+ #(primitive-eval
'(or (false-if-exception (- indent incipit-width))
- (* 0.5 indent)))
- ragged-right = ##f
- ragged-last = ##f
- system-count = #1 }
- }
- #})
+ (* 0.5 indent)))
+ ragged-right = ##f
+ ragged-last = ##f
+ system-count = #1 }
+ }
+ #})
(system-start-text::print grob)))
#})
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.15
-\version "2.17.15"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "real-music, staff-notation"
doctitle = "Inserting score fragments above a staff as markups"
} % begin verbatim
-
tuning = \markup {
\score {
\new Staff \with { \remove "Time_signature_engraver" }
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
- lsrtags = "keyboards, percussion, fretted-strings, template, real-music"
+ lsrtags = "fretted-strings, keyboards, percussion, real-music, template"
texidoc = "
This is quite an advanced template, for a jazz ensemble. Note that all
doctitle = "Jazz combo template"
} % begin verbatim
-
\header {
title = "Song"
subtitle = "(tune)"
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.24
-\version "2.17.24"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "headword"
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "staff-notation, tweaks-and-overrides"
texidoc = "
Setting the @code{breakable} property to @code{#t} in combination with
-@code{after-line-breaking} allows a glissando to break if it occurs
-at a line break:
-"
+@code{after-line-breaking} allows a glissando to break if it occurs at
+a line break:
+"
doctitle = "Making glissandi breakable"
} % begin verbatim
-
glissandoSkipOn = {
\override NoteColumn.glissando-skip = ##t
\hide NoteHead
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.18
-\version "2.17.18"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "really-simple, rhythms, version-specific"
doctitle = "Merging multi-measure rests in a polyphonic part"
} % begin verbatim
-
normalPos = \revert MultiMeasureRest.direction
{
+++ /dev/null
-\version "2.17.11"
-
-\header {
- lsrtags = "rhythms, syntax-and-expressions"
-
- texidoc = "
-The property @code{tupletSpannerDuration} sets how long each of the
-tuplets contained within the brackets after @code{\\tuplet} should last.
-Many consecutive tuplets can then be placed within a single
-@code{\\tuplet} expression, thus saving typing.
-
-There are several ways to set @code{tupletSpannerDuration}. The command
-@code{\\tupletSpan} sets it to a given duration, and clears it when
-instead of a duration @code{\\default} is specified. Another way is
-to use an optional argument with @code{\\tuplet}.
-"
- doctitle = "Entering several tuplets using only one \\tuplet command"
-}
-
-
-\relative c' {
- \time 2/4
- \tupletSpan 4
- \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
- \tupletSpan \default
- \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
- \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
-}
+++ /dev/null
-\version "2.17.27"
-
-\header {
- lsrtags = "headword"
-
- texidoc = "
-Expressive headword
-
-"
- doctitle = "Expressive headword"
-}
-\include "english.ly"
-
-% NR 1.3 Expressive marks
-
-% L. v. Beethoven, Op. 49 no. 1
-% Piano sonata 19 - "Leichte Sonate"
-% measures 1 - 12
-
-%\layout {
-% \context {
-% \Score
-% \override SpacingSpanner.base-shortest-duration =
-% #(ly:make-moment 1/20)
-% }
-%}
-
-\new PianoStaff <<
-
- % RH Staff
- \new Staff {
- \clef treble
- \key g \major
- \time 6/8
- \partial 2
- \once \override TextScript.padding = #2
- d'8 \staccato
- ^ \markup { \column {
- RONDO
- \italic Allegro } }
- d'8 \staccato
- g'8 \staccato
- a'8 \staccato
-
- |
-
- b'8 [ (
- g'8 ] )
- e'8 \staccato
- e' \staccato
- a'8 \staccato
- b'8 \staccato
-
- |
-
- c''8 [ (
- a'8 ] )
- e''8 \staccato
- d''8 \staccato
- c''8 \staccato
- b'8 \staccato
-
- |
-
- a'8 \staccato
- g'8 \staccato
- a'8 \staccato
- \acciaccatura { g'16 [ a'16 ] }
- bf'8
- a'8 \staccato
- g'8 \staccato
-
- |
-
- fs'8 [ (
- d'8 ] )
- d'8 \staccato
- d'8 \staccato
- g'8 \staccato
- a'8 \staccato
-
- |
-
- b'8 [ (
- g'8 ] )
- e'8 \staccato
- e'8 \staccato
- a'8 \staccato
- b'8 \staccato
-
- |
-
- c''8 [ (
- a'8 ] )
- e''8 \staccato
- d''8 \staccato
- c''8 \staccato
- b'8 \staccato
-
- |
-
- a'8 \staccato
- g'8 \staccato
- a'8 \staccato
- <<
- {
- \voiceOne
- d'8
- g'8
- fs'8
- \oneVoice
- }
- \new Voice {
- \voiceTwo
- d'4
- c'8
- \oneVoice
- }
- >>
-
- |
-
- <b g'>4 \tenuto
- d'8 \staccato
- g'8 \staccato
- b'8 \staccato
- d''8 \staccato
-
- |
-
- d''8 (
- <c'' a'>8 \staccato )
- <c'' a'>8 \staccato
- d''8 (
- <b' g'>8 \staccato )
- <b' g'>8 \staccato
-
- |
-
- d''8 (
- <c'' a'>8 \staccato )
- <c'' a'>8 \staccato
- d''8 (
- <b' g'>8 \staccato )
- <b' g'>8 \staccato
-
- |
-
- d''8 \staccato
- <c'' a'>8 \staccato
- <b' g'>8 \staccato
- d'' \staccato
- <c'' a'>8 \staccato
- <b' g'>8 \staccato
-
- |
-
- <d'' c'' a'>4 \fermata
- r8 r4 r8
- }
-
- % LH Staff
- \new Staff {
- \clef bass
- \key g \major
- \time 6/8
- \partial 2
- r8
- r8
- <d' b>8 \staccato
- <c' a>8 \staccato
-
- |
-
- <b g>4
- r8
- r8
- <e' c'>8 \staccato
- <d' b>8 \staccato
-
- |
-
- <c' a>4
- r8
- r8
- <a fs>8 \staccato
- <b g>8 \staccato
-
- |
-
- <c' a>8 \staccato
- <b d'>8 \staccato
- <e' c'>8 \staccato
- <e' cs'>4. (
-
- |
-
- d'4 )
- r8
- r8
- <d' b!>8 \staccato
- <c'! a>8 \staccato
-
- |
-
- <b g>4
- r8
- r8
- <e' c'>8 \staccato
- <d' b>8 \staccato
-
- |
-
- <c' a>4
- r8
- r8
- <a fs>8 \staccato
- <b g>8 \staccato
-
- |
-
- <c' a>8 \staccato
- <d' b>8 \staccato
- <e' c'>8 \staccato
- <b d>4
- <a d>8 \staccato
-
- |
-
- <g g,>4 \tenuto
- r8
- r4
- r8
-
- |
-
- r8
- <d' fs>8 \staccato
- <d' fs>8 \staccato
- r8
- <d' g>8 \staccato
- <d' g>8 \staccato
-
- |
-
- r8
- <d' fs>8 \staccato
- <d' fs>8 \staccato
- r8
- <d' g>8 \staccato
- <d' g>8 \staccato
-
- |
-
- r8
- <d' fs>8 \staccato
- <d' g>8 \staccato
- r8
- <d' fs>8 \staccato
- <d' g>8 \staccato
-
- |
-
- <d' fs>4 \fermata
- r8 r4 r8
- }
-
->>
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "staff-notation, tweaks-and-overrides"
- texidoc = "
-A glissando which extends into several @code{\alternative} blocks
-can be simulated by adding a hidden grace note with a glissando
-at the start of each @code{\alternative} block. The grace note
-should be at the same pitch as the note which starts the initial
-glissando. This is implemented here with a music function which
-takes the pitch of the grace note as its argument.
-
-Note that in polyphonic music the grace note must be matched with
-corresponding grace notes in all other voices.
-"
- doctitle = "Extending glissandi across repeats"
-}
-
-repeatGliss = #(define-music-function (parser location grace)
- (ly:pitch?)
- #{
- % the next two lines ensure the glissando is long enough
- % to be visible
- \once \override Glissando.springs-and-rods
- = #ly:spanner::set-spacing-rods
- \once \override Glissando.minimum-length = #3.5
- \once \hideNotes
- \grace $grace \glissando
- #})
-
-\score {
- \relative c'' {
- \repeat volta 3 { c4 d e f\glissando }
- \alternative {
- { g2 d }
- { \repeatGliss f g2 e }
- { \repeatGliss f e2 d }
- }
- }
-}
-
-music = \relative c' {
- \voiceOne
- \repeat volta 2 {
- g a b c\glissando
- }
- \alternative {
- { d1 }
- { \repeatGliss c e1 }
- }
-}
-
-\score {
- \new StaffGroup <<
- \new Staff <<
- \context Voice { \clef "G_8" \music }
- >>
- \new TabStaff <<
- \context TabVoice { \clef "moderntab" \music }
- >>
- >>
-}
\ No newline at end of file
+++ /dev/null
-% INSPIRATIONAL HEADER FOR LILYPOND DOCUMENTATION fretted-strings %
-% Passage from Johann Kaspar Mertz "Opern Revue, Op. 8, no. 17" %
-% on melodies from Bellini's "Norma" %
-%*****************************************************************%
-
-\version "2.17.30"
-
-\header {
- lsrtags = "headword"
- texidoc = ""
- doctitle = "headword"
-}
-
-
-\layout {
- \context {
- \Score
- \remove "Bar_number_engraver"
- }
-}
-
-%%%% shortcuts
-% fingering orientations
-sfol = \set fingeringOrientations = #'(left)
-sfor = \set fingeringOrientations = #'(right)
-sfod = \set fingeringOrientations = #'(down)
-sfou = \set fingeringOrientations = #'(up)
-
-% string number orientations
-ssnol = \set stringNumberOrientations = #'(left) %(down right up)
-ssnou = \set stringNumberOrientations = #'(up)
-ssnod = \set stringNumberOrientations = #'(down)
-ssnor = \set stringNumberOrientations = #'(right)
-
-% define fingering offset
-FO = #(define-music-function (parser location offsetX offsetY) (number? number?)
-#{
- \once \override Voice.Fingering.extra-offset = #(cons offsetX offsetY)
-#})
-
-% markups
-rit = \markup \center-align { \bold { \italic { " rit." } } }
-dimin = \markup \center-align { \italic { " dim." } }
-andantino = \markup \left-align { \italic { \bold { \fontsize #2.5 { "Andantino" } } } }
-benmarcato = \markup { \italic { \bold { "il canto ben marcato" } } }
-pdolce = #(make-dynamic-script (markup #:line (#:dynamic "p" #:normal-text #:italic "dol.")))
-
-%%% THE MUSIC %%%
-
-melody = \relative c {
- \clef "treble_8"
- \key d \major
- \time 4/4
- \voiceOne
- \sfol
- e,32 a' c e
- e, a c e
- e,, a' c e
- e, a c e
- f4\rest <e'-4>4-> | % m. 1
-
- e,,,32 gis' b e
- e, gis b e
- e,, gis' b e
- e, gis b e
- f4\rest \FO #'0.4 #'0.5 <gis-1 e'-4>4 | % m. 2
-
- d4\rest <b e>-> d4\rest^\rit <b e>4-> | % m. 3
- <gis b e>1 | % m. 4
-
- \bar "||"
- \key a \minor
- R1 % m. 5
-
- e'4^\benmarcato e8. d16-4
- d4-4 \tuplet 3/2 { \sfou \FO #'-0.3 #'0.6 <c-2>4 b8 } | % end of m. 6
-
- \FO #'-0.3 #'0.3
- <a-3>4 \tuplet 3/2 { c4 b8 } a4 e'8. e16 | % m. 7
-
- \FO #'-0.3 #'0.3
- <g-4>4 \tuplet 3/2 { \sfol \FO #'0.3 #'0.0 <f-1>4 e8 } e4 % beg of m. 8
- \tuplet 3/2 { \sfou <d-4>4 c8 } | % end of m. 8
-
- b4 \tuplet 3/2 { d4-4 c8 } \sfou \FO #'-1.7 #'-1.5 <b-0>4 e | % end of m. 9
-
- e4 e8. d16-4 d4 \tuplet 3/2 { c4 b8 } | % m. 10
-
- \tuplet 3/2 { a4 a8 b4 c8 } % beg of m. 11
- \sfou \FO #'-0.3 #'0.3
- <d-4>4^\< \tuplet 3/2 { e4 <d f>8\! } | % end of m. 11
-}
-
-bass = \relative c {
- \key d \major
- \time 4/4
- \voiceTwo
-
- e,8\fp[ e'] e,[ e'] e, \sfol <c''-1> <a'-2> c, | % m. 1
-
- e,,8\fp[ e'] e,[ e'] e, \sfod \FO #'0.2 #'-0.2 <b''-1> % beg m. 2
- \sfol \FO #'0.3 #'0.0 <e-1> b | % end m. 2
-
- e,,8 e' gis e e, e' gis_\dimin e | % m. 3
-
- e,1 | % m. 4
-
- %% new section starts here in A minor
- \set Score.beamExceptions = #'()
- \once \override TextScript.staff-padding = #1.7
- \tuplet 3/2 { a8\p^\andantino e' a c a e a, e' a c a e } | % m. 5
-
- \tuplet 3/2 { a,8\pdolce e' a c a e } % beg m. 6
- \tuplet 3/2 { e,8 \sfou <e'-3> <gis-1> c gis e } | % end m. 6
-
- \tuplet 3/2 { a,8 <e'-2> a c e, b' a, e' a c a e } | % m. 7
-
- \tuplet 3/2 { f,8 f' a \sfol \FO #'0.3 #'-0.5 <d-4> a f fis, d' a' d a d, } | % m. 8
-
- \tuplet 3/2 { <g,-3>8 d' g d' g, d % beg m. 9
- \sfod \FO #'0.0 #'-2.0 <gis,-4> \sfou <e'-2> <gis-1> b gis e } | % end m. 9
-
- \tuplet 3/2 { a,8 e' a c a e e, e' gis c gis e } | % m. 10
-
- \tuplet 3/2 { a,8 e' a b a e f, f' a d a f } | % m. 11
-}
-
-\score {
- \new Staff = "guitar" <<
- \context Voice = "upper" { \melody }
- \context Voice = "lower" { \bass }
- >>
- \layout {
- \context {
- \Score
- \override Fingering.staff-padding = #'()
- \omit TupletNumber
- \override TupletBracket.bracket-visibility = ##f
- }
- }
- \midi { }
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "rhythms, tweaks-and-overrides"
-
- texidoc = "
-The @code{stencil} property of the Flag grob can be set to a custom scheme
-function to generate the glyph for the flag.
-
-"
- doctitle = "Generating custom flags"
-}
-
-#(define-public (weight-flag grob)
- (let* ((stem-grob (ly:grob-parent grob X))
- (log (- (ly:grob-property stem-grob 'duration-log) 2))
- (is-up? (eqv? (ly:grob-property stem-grob 'direction) UP))
- (yext (if is-up? (cons (* log -0.8) 0) (cons 0 (* log 0.8))))
- (flag-stencil (make-filled-box-stencil '(-0.4 . 0.4) yext))
- (stroke-style (ly:grob-property grob 'stroke-style))
- (stroke-stencil (if (equal? stroke-style "grace")
- (make-line-stencil 0.2 -0.9 -0.4 0.9 -0.4)
- empty-stencil)))
- (ly:stencil-add flag-stencil stroke-stencil)))
-
-
-% Create a flag stencil by looking up the glyph from the font
-#(define (inverted-flag grob)
- (let* ((stem-grob (ly:grob-parent grob X))
- (dir (if (eqv? (ly:grob-property stem-grob 'direction) UP) "d" "u"))
- (flag (retrieve-glyph-flag "" dir "" grob))
- (line-thickness (ly:staff-symbol-line-thickness grob))
- (stem-thickness (ly:grob-property stem-grob 'thickness))
- (stem-width (* line-thickness stem-thickness))
- (stroke-style (ly:grob-property grob 'stroke-style))
- (stencil (if (null? stroke-style)
- flag
- (add-stroke-glyph flag stem-grob dir stroke-style "")))
- (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 }
-
-{
- \override Score.RehearsalMark.self-alignment-X = #LEFT
- \time 1/4
- \mark "Normal flags"
- \snippetexamplenotes
-
- \mark "Custom flag: inverted"
- \override Flag.stencil = #inverted-flag
- \snippetexamplenotes
-
- \mark "Custom flag: weight"
- \override Flag.stencil = #weight-flag
- \snippetexamplenotes
-
- \mark "Revert to normal"
- \revert Flag.stencil
- \snippetexamplenotes
-}
-
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "expressive-marks, staff-notation, tweaks-and-overrides"
- doctitle = "Glissandi can skip grobs"
- texidoc = "@code{NoteColumn} grobs can be skipped over by glissandi."
-}
-
-\relative c' {
- a2 \glissando
- \once \override NoteColumn.glissando-skip = ##t
- f''4 d,
-}
+++ /dev/null
-\version "2.17.30"
-
-\header {
- lsrtags = "fretted-strings"
-
- texidoc = "
-Unlike glissandos, slides may go from an imprecise point of the
-fretboard to a specific fret. A good way to do that is to add a grace
-hidden note before the note which is actually played, as demonstrated
-in the following example.
-"
- doctitle = "Guitar slides"
-}
-
-%% Hide fret number: useful to draw slide into/from a casual point of
-%% the fretboard.
-hideFretNumber = {
- \once \hide TabNoteHead
- \once \hide NoteHead
- \once \hide Stem
- \once \override NoteHead.no-ledgers = ##t
- \once \override Glissando.bound-details.left.padding = #0.3
-}
-
-music= \relative c' {
- \grace { \hideFretNumber d8\2 \glissando s2 } g2\2
- \grace { \hideFretNumber g8\2 \glissando s2 } d2 |
-
- \grace { \hideFretNumber c,8 \glissando s } f4\5^\markup \tiny { Slide into }
- \grace { \hideFretNumber f8 \glissando s } a4\4
- \grace { \hideFretNumber e'8\3 \glissando s } b4\3^\markup \tiny { Slide from }
- \grace { \hideFretNumber b'8 \glissando s2 } g4 |
-}
-
-\score {
- <<
- \new Staff {
- \clef "G_8"
- \music
- }
- \new TabStaff {
- \music
- }
- >>
-}
+++ /dev/null
-\version "2.16.0"
-
-\header {
- lsrtags = "editorial-annotations, fretted-strings"
-
- texidoc = "
-When using hammer-on or pull-off with chorded notes, only a single arc
-is drawn. However @q{double arcs} are possible by setting the
-@code{doubleSlurs} property to @code{#t}.
-
-"
- doctitle = "Hammer on and pull off using chords"
-}
-
-\new TabStaff {
- \relative c' {
- % chord hammer-on and pull-off
- \set doubleSlurs = ##t
- <g' b>8( <a c> <g b>)
- }
-}
+++ /dev/null
-\version "2.16.0"
-
-\header {
- lsrtags = "editorial-annotations, fretted-strings"
-
- texidoc = "
-The arc of hammer-on and pull-off is upwards in voices one and three and
-downwards in voices two and four:
-
-"
- doctitle = "Hammer on and pull off using voices"
-}
-
-\new TabStaff {
- \relative c' {
- << { \voiceOne g2( a) }
- \\ { \voiceTwo a,( b) }
- >> \oneVoice
- }
-}
+++ /dev/null
-\version "2.16.0"
-
-\header {
- lsrtags = "editorial-annotations, fretted-strings"
-
- texidoc = "
-Hammer-on and pull-off can be obtained using slurs.
-
-"
- doctitle = "Hammer on and pull off"
-}
-
-\new TabStaff {
- \relative c' {
- d4( e\2)
- a( g)
- }
-}
+++ /dev/null
-\version "2.17.15"
-
-\header {
- lsrtags = "contemporary-notation, percussion, real-music, rhythms"
-
- texidoc = "
-Though the polymetric time signature shown was not the most essential
-item here, it has been included to show the beat of this piece (which
-is the template of a real Balkan song!).
-
-"
- doctitle = "Heavily customized polymetric time signatures"
-}
-
-melody = \relative c'' {
- \set Staff.instrumentName = #"Bb Sop."
- \key g \major
- \compoundMeter #'((3 8) (2 8) (2 8) (3 8) (2 8) (2 8)
- (2 8) (2 8) (3 8) (2 8) (2 8))
- c8 c c d4 c8 c b c b a4 g fis8 e d c b' c d e4-^ fis8 g \break
- c,4. d4 c4 d4. c4 d c2 d4. e4-^ d4
- c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break
- c4. d4 c4 d4. c4 d c2 d4. e4-^ d4
- c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break
-}
-
-drum = \new DrumStaff \drummode {
- \bar ".|:" bd4.^\markup { Drums } sn4 bd \bar ";" sn4.
- bd4 sn \bar ";" bd sn bd4. sn4 bd \bar ":|."
-}
-
-{
- \melody
- \drum
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "correction-wanted, expressive-marks, tweaks-and-overrides, version-specific"
-
- texidoc = "
-Some dynamic expressions involve additional text, like @qq{sempre pp}.
-Since dynamics are usually centered under the note, the \\pp would be
-displayed way after the note it applies to.
-
-To correctly align the @qq{sempre pp} horizontally, so that it is
-aligned as if it were only the \\pp, there are several approaches:
-
-* Simply use @code{\\once\\override DynamicText.X-offset = #-9.2}
-before the note with the dynamics to manually shift it to the correct
-position. Drawback: This has to be done manually each time you use that
-dynamic markup...
-
-* Add some padding (@code{#:hspace 7.1}) into the
-definition of your custom dynamic mark, so that after lilypond
-center-aligns it, it is already correctly aligned. Drawback: The
-padding really takes up that space and does not allow any other markup
-or dynamics to be shown in that position.
-
-* Shift the dynamic script @code{\\once\\override ...X-offset = ..}.
-Drawback: @code{\\once\\override} is needed for every invocation!
-
-* Set the dimensions of the additional text to 0 (using
-@code{#:with-dimensions '(0 . 0) '(0 . 0)}). Drawback: To LilyPond
-@qq{sempre} has no extent, so it might put other stuff there and create
-collisions (which are not detected by the collision detection!). Also,
-there seems to be some spacing, so it's not exactly the same alignment
-as without the additional text
-
-* Add an explicit shifting directly inside the scheme function for the
-dynamic-script.
-
-* Set an explicit alignment inside the dynamic-script. By default, this
-won't have any effect, only if one sets X-offset! Drawback: One needs
-to set @code{DynamicText #'X-offset}, which will apply to all dynamic
-texts! Also, it is aligned at the right edge of the additional text,
-not at the center of pp.
-"
- doctitle = "Horizontally aligning custom dynamics (e.g. \"sempre pp\" \"piu f\" \"subito p\")"
-}
-
-\header { title = "Horizontally aligning custom dynamics" }
-
-\paper { ragged-right = ##f }
-
-% Solution 1: Using a simple markup with a particular halign value
-% Drawback: It's a markup, not a dynamic command, so \dynamicDown
-% etc. will have no effect
-semppMarkup = \markup { \halign #1.4 \italic "sempre" \dynamic "pp" }
-
-% Solution 2: Using a dynamic script & shifting with
-% \once \override ...X-offset = ..
-% Drawback: \once \override needed for every invocation
-semppK =
-#(make-dynamic-script
- (markup #:line
- (#:normal-text
- #:italic "sempre"
- #:dynamic "pp")))
-
-% Solution 3: Padding the dynamic script so the center-alignment
-% puts it at the correct position
-% Drawback: the padding really reserves the space, nothing else can be there
-semppT =
-#(make-dynamic-script
- (markup #:line
- (#:normal-text
- #:italic "sempre"
- #:dynamic "pp"
- #:hspace 7.1)))
-
-% Solution 4: Dynamic, setting the dimensions of the additional text to 0
-% Drawback: To lilypond "sempre" has no extent, so it might put
-% other stuff there => collisions
-% Drawback: Also, there seems to be some spacing, so it's not exactly the
-% same alignment as without the additional text
-semppM =
-#(make-dynamic-script
- (markup #:line
- (#:with-dimensions '(0 . 0) '(0 . 0)
- #:right-align
- #:normal-text
- #:italic "sempre"
- #:dynamic "pp")))
-
-% Solution 5: Dynamic with explicit shifting inside the scheme function
-semppG =
-#(make-dynamic-script
- (markup #:hspace 0
- #:translate '(-18.85 . 0)
- #:line (#:normal-text
- #:italic "sempre"
- #:dynamic "pp")))
-
-% Solution 6: Dynamic with explicit alignment. This has only effect
-% if one sets X-offset!
-% Drawback: One needs to set DynamicText.X-offset!
-% Drawback: Aligned at the right edge of the additional text,
-% not at the center of pp
-semppMII =
-#(make-dynamic-script
- (markup #:line (#:right-align
- #:normal-text
- #:italic "sempre"
- #:dynamic "pp")))
-
-\context StaffGroup <<
- \context Staff = "s" <<
- \set Staff.instrumentName = #"Normal"
- \relative c'' {
- \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'' {
- \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'' {
- \key es \major
- \once \override DynamicText.X-offset = #-9.2
- c4\semppK c\p c c
- c4\ff c
- \once \override DynamicText.X-offset = #-9.2
- c4\semppK c
- }
- >>
- \context Staff = "sT" <<
- \set Staff.instrumentName = \markup \column { Right padding }
- \relative c'' {
- \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'' {
- \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'' {
- \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'' {
- \key es \major
- % Setting to ##f (false) gives the same result
- \override DynamicText.X-offset = #0
- c4\semppMII c\p c c | c\ff c c\semppMII c
- }
- >>
->>
+++ /dev/null
-\version "2.17.24"
-
-\header {
- lsrtags = "editorial-annotations, expressive-marks, staff-notation, tweaks-and-overrides"
-
- texidoc = "
-This method prints two 'rehearsal marks', one on top of the other. It
-shifts the lower rehearsal mark below the staff and then adds padding
-above it in order to place the upper rehearsal mark above the staff.
-
-By adjusting the extra-offset and baseline-skip values you can increase
-or decrease the overall space between the rehearsal mark and the staff.
-
-Because nearly every type of glyph or string can be made to behave like
-a rehearsal mark it is possible to centre those above and below a bar
-line.
-
-Adding the appropriate 'break visibility' as shown in snippet 1 will
-allow you to position two marks at the end of a line as well.
-
-Note: Method 1 is less complex than Method 2 but does not really allow
-for fine tuning of placement of one of the rehearsal marks without
-affecting the other. It may also give some problems with vertical
-spacing, since using @code{extra-offset} does not change the bounding
-box of the mark from its original value.
-
-
-
-"
- doctitle = "How to print two rehearsal marks above and below the same barline (method 1)"
-}
-
-\relative c'{
- c d e f |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \mark \markup \center-column { \circle 1 \box A }
- g f e d |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \mark \markup \center-column { \flat { \bold \small \italic Fine. } }
- g f e d |
- \once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
- \once \override Score.RehearsalMark.baseline-skip = #9
- \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
- \mark \markup \center-column { \fermata \box z }
-}
+++ /dev/null
-\version "2.17.30"
-
-\header {
- lsrtags = "staff-notation, ancient-notation, really-cool"
- texidoc = "
-Incipits can be added using the instrument name grob, but keeping
-separate the instrument name definition and the incipit definition.
-"
- doctitle = "Incipit"
-}
-
-incipit =
-#(define-music-function (parser location incipit-music) (ly:music?)
- #{
- \once \override Staff.InstrumentName.self-alignment-X = #RIGHT
- \once \override Staff.InstrumentName.self-alignment-Y = ##f
- \once \override Staff.InstrumentName.padding = #0.3
- \once \override Staff.InstrumentName.stencil =
- #(lambda (grob)
- (let* ((instrument-name (ly:grob-property grob 'long-text)))
- (set! (ly:grob-property grob 'long-text)
- #{ \markup
- \score
- {
- { \context MensuralStaff \with {
- instrumentName = #instrument-name
- } $incipit-music
- }
- \layout { $(ly:grob-layout grob)
- line-width = \indent
- indent =
- % primitive-eval is probably easiest for
- % escaping lexical closure and evaluating
- % everything respective to (current-module).
- #(primitive-eval
- '(or (false-if-exception (- indent incipit-width))
- (* 0.5 indent)))
- ragged-right = ##f
- ragged-last = ##f
- system-count = #1 }
- }
- #})
- (system-start-text::print grob)))
- #})
-
-%%%%%%%%%%%%%%%%%%%%%%%%%
-
-global = {
- \set Score.skipBars = ##t
- \key g \major
- \time 4/4
-
- % the actual music
- \skip 1*8
-
- % let finis bar go through all staves
- \override Staff.BarLine.transparent = ##f
-
- % finis bar
- \bar "|."
-}
-
-discantusIncipit = <<
- \new MensuralVoice = "discantusIncipit" <<
- \repeat unfold 9 { s1 \noBreak }
- {
- \clef "neomensural-c1"
- \key f \major
- \time 2/2
- c''1.
- }
- >>
- \new Lyrics \lyricsto discantusIncipit { IV- }
->>
-
-discantusNotes = {
- \transpose c' c'' {
- \clef "treble"
- d'2. d'4 |
- b e' d'2 |
- c'4 e'4.( d'8 c' b |
- a4) b a2 |
- b4.( c'8 d'4) c'4 |
- \once \hide NoteHead
- c'1 |
- b\breve |
- }
-}
-
-discantusLyrics = \lyricmode {
- Ju -- bi -- |
- la -- te De -- |
- o, om --
- nis ter -- |
- ra, __ om- |
- "..." |
- -us. |
-}
-
-altusIncipit = <<
- \new MensuralVoice = "altusIncipit" <<
- \repeat unfold 9 { s1 \noBreak }
- {
- \clef "neomensural-c3"
- \key f \major
- \time 2/2
- r1 f'1.
- }
- >>
- \new Lyrics \lyricsto altusIncipit { IV- }
->>
-
-altusNotes = {
- \transpose c' c'' {
- \clef "treble"
- % two measures
- r2 g2. e4 fis g |
- a2 g4 e |
- fis g4.( fis16 e fis4) |
- g1 |
- \once \hide NoteHead
- g1 |
- g\breve |
- }
-}
-
-altusLyrics = \lyricmode {
- % two measures
- Ju -- bi -- la -- te |
- De -- o, om -- |
- nis ter -- ra, |
- "..." |
- -us. |
-}
-
-tenorIncipit = <<
- \new MensuralVoice = "tenorIncipit" <<
- \repeat unfold 9 { s1 \noBreak }
- {
- \clef "neomensural-c4"
- \key f \major
- \time 2/2
- r\longa
- r\breve
- r1 c'1.
- }
- >>
- \new Lyrics \lyricsto tenorIncipit { IV- }
->>
-
-tenorNotes = {
- \transpose c' c' {
- \clef "treble_8"
- R1 |
- R1 |
- R1 |
- % two measures
- r2 d'2. d'4 b e' |
- \once \hide NoteHead
- e'1 |
- d'\breve |
- }
-}
-
-tenorLyrics = \lyricmode {
- % two measures
- Ju -- bi -- la -- te |
- "..." |
- -us.
-}
-
-bassusIncipit = <<
- \new MensuralVoice = "bassusIncipit" <<
- \repeat unfold 9 { s1 \noBreak }
- {
- \clef "bass"
- \key f \major
- \time 2/2
- %% incipit
- r\maxima
- f1.
- }
- >>
- \new Lyrics \lyricsto bassusIncipit { IV- }
->>
-
-bassusNotes = {
- \transpose c' c' {
- \clef "bass"
- R1 |
- R1 |
- R1 |
- R1 |
- g2. e4 |
- \once \hide NoteHead
- e1 |
- g\breve |
- }
-}
-
-bassusLyrics = \lyricmode {
- Ju -- bi- |
- "..." |
- -us.
-}
-
-\score {
- <<
- \new StaffGroup = choirStaff <<
- \new Voice = "discantusNotes" <<
- \global
- \set Staff.instrumentName = #"Discantus"
- \incipit \discantusIncipit
- \discantusNotes
- >>
- \new Lyrics = "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
- \new Voice = "altusNotes" <<
- \global
- \set Staff.instrumentName = #"Altus"
- \incipit \altusIncipit
- \altusNotes
- >>
- \new Lyrics = "altusLyrics" \lyricsto altusNotes { \altusLyrics }
- \new Voice = "tenorNotes" <<
- \global
- \set Staff.instrumentName = #"Tenor"
- \incipit \tenorIncipit
- \tenorNotes
- >>
- \new Lyrics = "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
- \new Voice = "bassusNotes" <<
- \global
- \set Staff.instrumentName = #"Bassus"
- \incipit \bassusIncipit
- \bassusNotes
- >>
- \new Lyrics = "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
- >>
- >>
- \layout {
- \context {
- \Score
- %% no bar lines in staves or lyrics
- \hide BarLine
- }
- %% the next two instructions keep the lyrics between the bar lines
- \context {
- \Lyrics
- \consists "Bar_engraver"
- \consists "Separating_line_group_engraver"
- }
- \context {
- \Voice
- %% no slurs
- \hide Slur
- %% Comment in the below "\remove" command to allow line
- %% breaking also at those bar lines where a note overlaps
- %% into the next measure. The command is commented out in this
- %% short example score, but especially for large scores, you
- %% will typically yield better line breaking and thus improve
- %% overall spacing if you comment in the following command.
- %%\remove "Forbid_line_break_engraver"
- }
- indent = 6\cm
- incipit-width = 4\cm
- }
-}
+++ /dev/null
-\version "2.17.15"
-
-\header {
- lsrtags = "real-music, staff-notation"
-
- texidoc = "
-The @code{\\markup} command is quite versatile. In this snippet, it
-contains a @code{\\score} block instead of texts or marks.
-
-"
- doctitle = "Inserting score fragments above a staff as markups"
-}
-
-tuning = \markup {
- \score {
- \new Staff \with { \remove "Time_signature_engraver" }
- {
- \clef bass
- <c, g, d g>1
- }
- \layout { ragged-right = ##t indent = 0\cm }
- }
-}
-
-\header {
- title = "Solo Cello Suites"
- subtitle = "Suite IV"
- subsubtitle = \markup { Originalstimmung: \raise #0.5 \tuning }
-}
-
-\layout { ragged-right = ##f }
-
-\relative c'' {
- \time 4/8
- \tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
- \tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
- g8 a g a
- g8 a g a
-}
+++ /dev/null
-\version "2.17.30"
-
-\header {
- lsrtags = "keyboards, percussion, fretted-strings, template, real-music"
-
- texidoc = "
-This is quite an advanced template, for a jazz ensemble. Note that all
-instruments are notated in @code{\\key c \\major}. This refers to the
-key in concert pitch; the key will be automatically transposed if the
-music is within a @code{\\transpose} section.
-
-"
- doctitle = "Jazz combo template"
-}
-
-\header {
- title = "Song"
- subtitle = "(tune)"
- composer = "Me"
- meter = "moderato"
- piece = "Swing"
- tagline = \markup {
- \column {
- "LilyPond example file by Amelie Zapf,"
- "Berlin 07/07/2003"
- }
- }
-}
-
-%#(set-global-staff-size 16)
-\include "english.ly"
-
-%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
-
-sl = {
- \override NoteHead.style = #'slash
- \hide Stem
-}
-nsl = {
- \revert NoteHead.style
- \undo \hide Stem
-}
-crOn = \override NoteHead.style = #'cross
-crOff = \revert NoteHead.style
-
-%% insert chord name style stuff here.
-
-jazzChords = { }
-
-%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
-
-global = { \time 4/4 }
-
-Key = { \key c \major }
-
-% ############ Horns ############
-
-% ------ Trumpet ------
-trpt = \transpose c d \relative c'' {
- \Key
- c1 | c | c |
-}
-trpHarmony = \transpose c' d {
- \jazzChords
-}
-trumpet = {
- \global
- \set Staff.instrumentName = #"Trumpet"
- \clef treble
- <<
- \trpt
- >>
-}
-
-% ------ Alto Saxophone ------
-alto = \transpose c a \relative c' {
- \Key
- c1 | c | c |
-}
-altoHarmony = \transpose c' a {
- \jazzChords
-}
-altoSax = {
- \global
- \set Staff.instrumentName = #"Alto Sax"
- \clef treble
- <<
- \alto
- >>
-}
-
-% ------ Baritone Saxophone ------
-bari = \transpose c a' \relative c {
- \Key
- c1
- c1
- \sl
- d4^"Solo" d d d
- \nsl
-}
-bariHarmony = \transpose c' a \chordmode {
- \jazzChords s1 s d2:maj e:m7
-}
-bariSax = {
- \global
- \set Staff.instrumentName = #"Bari Sax"
- \clef treble
- <<
- \bari
- >>
-}
-
-% ------ Trombone ------
-tbone = \relative c {
- \Key
- c1 | c | c
-}
-tboneHarmony = \chordmode {
- \jazzChords
-}
-trombone = {
- \global
- \set Staff.instrumentName = #"Trombone"
- \clef bass
- <<
- \tbone
- >>
-}
-
-% ############ Rhythm Section #############
-
-% ------ Guitar ------
-gtr = \relative c'' {
- \Key
- c1
- \sl
- b4 b b b
- \nsl
- c1
-}
-gtrHarmony = \chordmode {
- \jazzChords
- s1 c2:min7+ d2:maj9
-}
-guitar = {
- \global
- \set Staff.instrumentName = #"Guitar"
- \clef treble
- <<
- \gtr
- >>
-}
-
-%% ------ Piano ------
-rhUpper = \relative c'' {
- \voiceOne
- \Key
- c1 | c | c
-}
-rhLower = \relative c' {
- \voiceTwo
- \Key
- e1 | e | e
-}
-
-lhUpper = \relative c' {
- \voiceOne
- \Key
- g1 | g | g
-}
-lhLower = \relative c {
- \voiceTwo
- \Key
- c1 | c | c
-}
-
-PianoRH = {
- \clef treble
- \global
- \set Staff.midiInstrument = #"acoustic grand"
- <<
- \new Voice = "one" \rhUpper
- \new Voice = "two" \rhLower
- >>
-}
-PianoLH = {
- \clef bass
- \global
- \set Staff.midiInstrument = #"acoustic grand"
- <<
- \new Voice = "one" \lhUpper
- \new Voice = "two" \lhLower
- >>
-}
-
-piano = {
- <<
- \set PianoStaff.instrumentName = #"Piano"
- \new Staff = "upper" \PianoRH
- \new Staff = "lower" \PianoLH
- >>
-}
-
-% ------ Bass Guitar ------
-Bass = \relative c {
- \Key
- c1 | c | c
-}
-bass = {
- \global
- \set Staff.instrumentName = #"Bass"
- \clef bass
- <<
- \Bass
- >>
-}
-
-% ------ Drums ------
-up = \drummode {
- \voiceOne
- hh4 <hh sn> hh <hh sn>
- hh4 <hh sn> hh <hh sn>
- hh4 <hh sn> hh <hh sn>
-}
-down = \drummode {
- \voiceTwo
- bd4 s bd s
- bd4 s bd s
- bd4 s bd s
-}
-
-drumContents = {
- \global
- <<
- \set DrumStaff.instrumentName = #"Drums"
- \new DrumVoice \up
- \new DrumVoice \down
- >>
-}
-
-%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
-
-\score {
- <<
- \new StaffGroup = "horns" <<
- \new Staff = "trumpet" \trumpet
- \new Staff = "altosax" \altoSax
- \new ChordNames = "barichords" \bariHarmony
- \new Staff = "barisax" \bariSax
- \new Staff = "trombone" \trombone
- >>
-
- \new StaffGroup = "rhythm" <<
- \new ChordNames = "chords" \gtrHarmony
- \new Staff = "guitar" \guitar
- \new PianoStaff = "piano" \piano
- \new Staff = "bass" \bass
- \new DrumStaff \drumContents
- >>
- >>
- \layout {
- \context { \Staff \RemoveEmptyStaves }
- \context {
- \Score
- \override BarNumber.padding = #3
- \override RehearsalMark.padding = #2
- skipBars = ##t
- }
- }
- \midi { }
-}
-
+++ /dev/null
-\version "2.17.24"
-
-\header {
- lsrtags = "headword"
-
- texidoc = "
-Keyboard headword
-
-"
- doctitle = "Keyboard headword"
-}
-% M. Ravel, Sonatine (1905)
-% First movement
-\include "english.ly"
-
-\layout {
- \context {
- \Score
- \remove "Bar_number_engraver"
- }
-}
-
-fermataLong = \markup {
- \override #'(direction . 1)
- \override #'(baseline-skip . 2) {
- \dir-column {
- \fermata
- \text \italic \center-align long
- }
- }
-}
-
-\new PianoStaff <<
- \set PianoStaff.connectArpeggios = ##t
- \new Staff {
- \time 2/4
- \key fs \major
- <<
- \new Voice {
- \voiceOne
- fs''8 ( ^\markup {
- \override #'(baseline-skip . 2.4) \column {
- \line \bold { Un peu retenu }
- \line \italic { très expressif }
- }
- }
- es''16
- cs''16
- as'4 )
- |
- fs''8 (
- es''16
- cs''16
- as'4 )
- |
- fs''8 (
- es''16
- cs''16
- as'8
- cs''8 )
- |
- }
- \new Voice {
- \voiceTwo
- gs'8\rest \ppp
- fs'4 (
- es'8 )
- |
- gs'8\rest
- fs'4 (
- es'8 )
- |
- gs'8\rest
- fs'4 (
- es'8 )
- |
- }
- >>
- \clef bass
- <ds b! es'>4 ( ^ \markup \bold { Rall. }
- \override Script.stencil = #(lambda (grob)
- (grob-interpret-markup grob fermataLong))
- <ds' as'>8 ) \fermata
- \noBeam
- \clef treble
- \slurUp
- \once \override Hairpin.to-barline = ##f
- <as fs'>8 ( \pp \>
- |
- <gs b cs'>4. \! ) ^\markup \bold { a Tempo }
- \slurUp
- <as fs'>8 ^\( \>
- |
- <gs b cs'>4. \! \)
- <<
- \new Voice {
- \voiceOne
- <as fs'>8 (
- |
- cs'8 ^\markup \bold { Rallentando }
- b16
- cs'16
- d'8
- e'16
- fs'16
- |
- <as! cs' gs'>4. )
- s8
- |
- r8
- <cs'' as'' cs'''>4 \arpeggio
- e''16 ( ^\markup \bold { Lent }
- fs''16
- |
- \voiceTwo
- <as'! cs'' gs''>2 )
- |
- }
- \new Voice {
- \voiceTwo
- s8
- |
- <gs b>4 \<
- <fs bs>4 \>
- |
- s4. \!
- \slurUp
- \once \override Script.direction = #UP
- <a bs e'>8 ( \accent
- |
- <as! cs' gs'>4. )
- \once \override Hairpin.to-barline = ##f
- <a' bs'>8 \ppp \>
- |
- s8 \!
- \stemDown
- \once \override Script.direction = #UP
- \ottava #1
- \voiceOne
- \once \override PianoStaff.Arpeggio.padding = #0.8
- <cs''' as''' cs''''>4. \arpeggio \fermata
- \ottava #0
- \bar "|."
- }
- >>
- }
- \new Staff <<
- \set Staff.pedalSustainStyle = #'bracket
- \key fs \major
- \clef bass
- \new Voice {
- \voiceOne
- ds'4 \tenuto
- cs'4 \tenuto
- |
- ds'4 \tenuto
- cs'4 \tenuto
- |
- ds'4 \tenuto
- cs'4 \tenuto
- |
- s8
- \clef treble
- <b' cs''>8 [
- \clef bass
- <es b cs'>8 \fermata ]
- s8
- |
- fs8\rest
- \clef treble
- <b' cs''>4 \tenuto
- s8
- |
- fs8\rest
- \clef treble
- <b' cs''>4 \tenuto
- s8
- |
- s2
- |
- ds8\rest
- \clef treble
- <as' cs''>4
- \clef bass
- s8
- |
- s8
- \clef treble
- <as'>4 \arpeggio
- \clef bass
- s8
- |
- s8
- \clef treble
- <as''>4. \arpeggio \fermata
- |
- }
- \new Voice {
- \voiceTwo
- ds'8 [ (
- < ds bs >8
- cs'8
- < ds as >8 ] )
- |
- ds'8 [ (
- < ds bs >8
- cs'8
- < ds as >8 ] )
- |
- ds'8 [ (
- < ds bs >8
- cs'8
- < ds as >8 ] )
- |
- \once \override Script.outside-staff-priority = #100
- \once \override TextScript.outside-staff-priority = #500
- <cs, gs,>4. \fermata _\markup \italic { ped. }
- <fs, cs>8 (
- |
- <e, b,>4. ) \sustainOn
- \clef bass
- <fs, cs>8 \( \sustainOff
- |
- <e, b,>4. \) \sustainOn
- \clef bass
- <fs, cs>8 ( \sustainOff
- |
- <e, b,>4
- <d, a,>4
- |
- <fs,, cs,>4. ) \sustainOn
- <a, e>8 ( \sustainOff
- |
- <fs, cs>4. ) \sustainOn
- \slurUp
- <a e'>8 ( \sustainOff \sustainOn
- |
- <fs cs'>2 ) \sustainOff \sustainOn
- |
- }
- >>
->>
+++ /dev/null
-\version "2.17.30"
-
-\header {
- lsrtags = "staff-notation, tweaks-and-overrides"
-
- texidoc = "
-Setting the @code{breakable} property to @code{#t} in combination with
-@code{after-line-breaking} allows a glissando to break if it occurs
-at a line break:
-"
-
- doctitle = "Making glissandi breakable"
-}
-
-glissandoSkipOn = {
- \override NoteColumn.glissando-skip = ##t
- \hide NoteHead
- \override NoteHead.no-ledgers = ##t
-}
-
-\relative c'' {
- \override Glissando.breakable = ##t
- \override Glissando.after-line-breaking = ##t
- f1\glissando |
- \break
- a4 r2. |
- f1\glissando
- \once \glissandoSkipOn
- \break
- a2 a4 r4 |
-}
+++ /dev/null
-\version "2.17.18"
-
-\header {
- lsrtags = "really-simple, rhythms, version-specific"
-
- texidoc = "
-When using multi-measure rests in a polyphonic staff, the rests will be
-placed differently depending on the voice they belong to. However they
-can be printed on the same staff line, using the following setting.
-
-"
- doctitle = "Merging multi-measure rests in a polyphonic part"
-}
-
-normalPos = \revert MultiMeasureRest.direction
-
-{
- <<
- {
- c''1
- R1
- c''1
- \normalPos
- R1
- }
- \\
- {
- c'1
- R1
- c'1
- \normalPos
- R1
- }
- >>
-}
+++ /dev/null
-\version "2.17.7"
-
-\header {
- lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
-
- texidoc = "
-This snippet demonstrates the use of the @code{Measure_counter_engraver} to
-number groups of successive measures. Any stretch of measures may be numbered,
-whether consisting of repetitions or not.
-
-The engraver must be added to the appropriate context. Here, a @code{Staff}
-context is used; another possibility is a @code{Dynamics} context.
-
-The counter is begun with @code{\\startMeasureCount} and ended with
-@code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
-this behavior may be modified by overriding the @code{count-from} property.
-
-When a measure extends across a line break, the number will appear twice, the
-second time in parentheses.
-
-"
- doctitle = "Numbering groups of measures"
-}
-
-\layout {
- \context {
- \Staff
- \consists #Measure_counter_engraver
- }
-}
-
-\new Staff {
- \startMeasureCount
- \repeat unfold 7 {
- c'4 d' e' f'
- }
- \stopMeasureCount
- \bar "||"
- g'4 f' e' d'
- \override Staff.MeasureCounter.count-from = #2
- \startMeasureCount
- \repeat unfold 5 {
- g'4 f' e' d'
- }
- g'4 f'
- \bar ""
- \break
- e'4 d'
- \repeat unfold 7 {
- g'4 f' e' d'
- }
- \stopMeasureCount
-}
+++ /dev/null
-\version "2.16.0"
-
-\header {
- lsrtags = "pitches"
- texidoc = "
-Easy notation note heads use the @code{note-names} property
-of the @code{NoteHead} object to determine what appears inside
-the note head. By overriding this property, it is possible
-to print numbers representing the scale-degree.
-
-A simple engraver can be created to do this for every note head
-object it sees.
-"
- doctitle = "Numbers as easy note heads"
-}
-
-#(define Ez_numbers_engraver
- (make-engraver
- (acknowledgers
- ((note-head-interface engraver grob source-engraver)
- (let* ((context (ly:translator-context engraver))
- (tonic-pitch (ly:context-property context 'tonic))
- (tonic-name (ly:pitch-notename tonic-pitch))
- (grob-pitch
- (ly:event-property (event-cause grob) 'pitch))
- (grob-name (ly:pitch-notename grob-pitch))
- (delta (modulo (- grob-name tonic-name) 7))
- (note-names
- (make-vector 7 (number->string (1+ delta)))))
- (ly:grob-set-property! grob 'note-names note-names))))))
-
-#(set-global-staff-size 26)
-
-\layout {
- ragged-right = ##t
- \context {
- \Voice
- \consists \Ez_numbers_engraver
- }
-}
-
-\relative c' {
- \easyHeadsOn
- c4 d e f
- g4 a b c \break
-
- \key a \major
- a,4 b cis d
- e4 fis gis a \break
-
- \key d \dorian
- d,4 e f g
- a4 b c d
-}
+++ /dev/null
-\version "2.17.27"
-
-\header {
- lsrtags = "headword"
-
- texidoc = "
-Piches headword
-
-"
- doctitle = "Pitches headword"
-}
-% L. v. Beethoven
-% Piano sonata 21 - Dem Grafen von Waldstein Gewidmet
-% chorale at measures 34 - 40+
-
-\include "english.ly"
-
-\new PianoStaff <<
-
- % RH Staff
- \new Staff <<
-
- % RH Voice 1
- \new Voice {
- \set Score.currentBarNumber = #34
- \voiceOne
- gs''2 ( ^ \markup \italic { dolce e molto ligato }
- fs''4
- e''4
- |
- ds''2
- cs''2 )
- |
- ds''2 (
- e''4
- fs''4
- |
- <gs'' e''>2
- <fs'' ds''>2 )
- |
- \oneVoice
- \clef bass
- <gs' e' b>2 (
- <fs' ds' a>4
- <e' cs' gs>4
- |
- <ds' bs fs>2
- <cs' a e>2 )
- |
- \voiceOne
- b2 %(
- cs'4
- ds'4
- |
- \clef treble
- <e' gs>4 %)
- r4 r2
- }
-
- % RH Voice 2
- \new Voice {
- \voiceTwo
- \override Staff.DynamicLineSpanner.staff-padding = #3
- <e'' b'>2 \p
- <ds'' a'>4
- <cs'' gs'>4
- |
- <bs' fs'>2
- e'2
- |
- <b'! a'>2 -\tweak #'style #'none \cresc
- b'4
- <e'' cs''>4
- |
- b'2. ( \sf \>
- a'4 )
- \clef bass
- | \break
- s1 \p
- |
- s1
- |
- <gs e>4 (
- <a fs>2. )
- |
- s4
- r4 r2
- }
-
- >>
-
- % LH Staff
- \new Staff {
- \override Staff.SustainPedalLineSpanner.staff-padding = #6
- <gs' e'>2 ( \sustainOn
- <fs' ds' b>4 \sustainOff
- <e' cs'>4
- |
- <ds' bs gs>2
- <cs' a>2 ) \sustainOn
- |
- \clef bass
- \slurDown
- <ds' b! a fs>2 ( \sustainOff
- <e' b gs>4
- <fs' cs' a>4 \sustainOn
- |
- \clef treble
- \voiceOne
- <<
- {
- <gs' e'>2
- <fs' ds'>2 )
- }
- \new Voice {
- \voiceTwo
- b1 \sustainOff
- }
- >>
- \oneVoice
- |
- %\break
- \clef bass
- <gs e>2 (
- <fs ds b,>4
- <e cs>4
- |
- <ds bs, gs,>2
- <cs a,>2 ) \sustainOn
- |
- <b,! b,,!>1 ( \sustainOff
- |
- <e e,>4 )
- r4 r2
- }
-
->>
+++ /dev/null
-\version "2.17.18"
-
-\header {
- lsrtags = "rhythms, tweaks-and-overrides"
-
- texidoc = "
-Unlike ordinary rests, there is no predefined command to change the
-staff position of a multi-measure rest symbol of either form by
-attaching it to a note. However, in polyphonic music multi-measure
-rests in odd-numbered and even-numbered voices are vertically
-separated. The positioning of multi-measure rests can be controlled as
-follows:
-
-"
- doctitle = "Positioning multi-measure rests"
-}
-
-\relative c'' {
- % Multi-measure rests by default are set under the fourth line
- R1
- % They can be moved using an override
- \override MultiMeasureRest.staff-position = #-2
- R1
- \override MultiMeasureRest.staff-position = #0
- R1
- \override MultiMeasureRest.staff-position = #2
- R1
- \override MultiMeasureRest.staff-position = #3
- R1
- \override MultiMeasureRest.staff-position = #6
- R1
- \revert MultiMeasureRest.staff-position
- \break
-
- % In two Voices, odd-numbered voices are under the top line
- << { R1 } \\ { a1 } >>
- % Even-numbered voices are under the bottom line
- << { a1 } \\ { R1 } >>
- % Multi-measure rests in both voices remain separate
- << { R1 } \\ { R1 } >>
-
- % Separating multi-measure rests in more than two voices
- % requires an override
- << { R1 } \\ { R1 } \\
- \once \override MultiMeasureRest.staff-position = #0
- { R1 }
- >>
-
- % Using compressed bars in multiple voices requires another override
- % in all voices to avoid multiple instances being printed
- \compressFullBarRests
- <<
- \revert MultiMeasureRest.direction
- { R1*3 }
- \\
- \revert MultiMeasureRest.direction
- { R1*3 }
- >>
-}
+++ /dev/null
-\version "2.17.14"
-
-\header {
- lsrtags = "expressive-marks"
-
- texidoc = "
-Hairpin dynamics may be created in a variety of styles
-
-"
- doctitle = "Printing hairpins in various styles"
-}
-
-\relative c'' {
- \override Hairpin.stencil = #flared-hairpin
- a4\< a a a\f
- a4\p\< a a a\ff
- a4\sfz\< a a a\!
- \override Hairpin.stencil = #constante-hairpin
- a4\< a a a\f
- a4\p\< a a a\ff
- a4\sfz\< a a a\!
- \override Hairpin.stencil = #flared-hairpin
- a4\> a a a\f
- a4\p\> a a a\ff
- a4\sfz\> a a a\!
- \override Hairpin.stencil = #constante-hairpin
- a4\> a a a\f
- a4\p\> a a a\ff
- a4\sfz\> a a a\!
-}
+++ /dev/null
-\version "2.17.13"
-
-\header {
- lsrtags = "pitches, staff-notation"
-
- texidoc = "
-Quotations take into account the transposition of both source and
-target. In this example, all instruments play sounding middle C; the
-target is an instrument in F. The target part may be transposed using
-@code{\\transpose}. In this case, the quoted pitches will stay
-unchanged.
-"
- doctitle = "Quoting another voice with transposition"
-}
-
-\addQuote clarinet {
- \transposition bes
- \repeat unfold 8 { d'16 d' d'8 }
-}
-
-\addQuote sax {
- \transposition es'
- \repeat unfold 16 { a8 }
-}
-
-quoteTest = {
- % french horn
- \transposition f
- g'4
- << \quoteDuring #"clarinet" { \skip 4 } s4^"clar." >>
- << \quoteDuring #"sax" { \skip 4 } s4^"sax." >>
- g'4
-}
-
-{
- \set Staff.instrumentName =
- \markup {
- \center-column { Horn \line { in F } }
- }
- \quoteTest
- \transpose c' d' << \quoteTest s4_"up a tone" >>
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "rhythms"
-
- texidoc = "
-The global defaults for grace notes are stored in the identifiers
-@code{startGraceMusic}, @code{stopGraceMusic},
-@code{startAcciaccaturaMusic}, @code{stopAcciaccaturaMusic},
-@code{startAppoggiaturaMusic} and @code{stopAppoggiaturaMusic}, which
-are defined in the file @code{ly/grace-init.ly}. By redefining them
-other effects may be obtained.
-
-"
- doctitle = "Redefining grace note global defaults"
-}
-
-startAcciaccaturaMusic = {
- <>(
- \override Flag.stroke-style = #"grace"
- \slurDashed
-}
-
-stopAcciaccaturaMusic = {
- \revert Flag.stroke-style
- \slurSolid
- <>)
-}
-
-\relative c'' {
- \acciaccatura d8 c1
-}
-
+++ /dev/null
-\version "2.17.30"
-
-\header {
- lsrtags = "template, real-music, specific-notation"
-
- texidoc = "
-A template to write a score for a diatonic accordion.
-
-- There is a horizontal staff indicating if the accordion must be
-pushed (thick line) or pulled (thin line)
-
-- There is a small rhythmic staff with lyrics that describes the bass
-buttons to press. The bar lines are made from gridlines
-
-- The tabulator staff for diatonic accordions shows the geographic
-position of the buttons and not (as for every other instrument) the
-pitch of the notes; the keys on the melody-side of the accordion are
-placed in three columns and about 12 rows
-
-
-In the tabulator staff notation the outermost column is described with
-notes between lines, the innermost column is described with notes
-between lines and a cross as accidental, and the middle column is
-described with notes on a line, whereby the row in the middle is
-represented on the middle line in the staff.
-
-
-Some words to transpose piano notes to the diatonic accordion:
-
-
-1. Every diatonic accordion is built for some keys only (for example,
-for the keys of C major and F major), so it is important to transpose a
-piano melody to match one of these keys. Transpose the source code, not
-only the output because this code is required later on to translate it
-once more to the tabulator staff. This can be done with the command
-@code{displayLilyMusic}.
-
-
-2. You have to alternate the push- and pull-direction of the accordion
-regularly. If the player has a too long part to pull the accordion gets
-broken. On the other hand, some harmonies are only available in one
-direction. Considering this, decide which parts of the melody are the
-push-parts and which the pull-parts.
-
-
-3. For each pull- or push-part translate the piano notes to the
-according tabulature representation.
-
-
-This snippet comes with a useful optional macro for the jEdit text
-editor.
-
-"
- doctitle = "Score for diatonic accordion"
-}
-
-verse = \lyricmode { Wie gross bist du! Wie gross bist du! }
-
-harmonies = \new ChordNames \chordmode {
- \germanChords
- \set chordChanges = ##t
- bes8 bes8 bes8
- es2 f
- bes1
-}
-
-NoStem = { \hide Stem }
-NoNoteHead = \hide NoteHead
-ZeroBeam = \override Beam.positions = #'(0 . 0)
-
-staffTabLine = \new Staff \with {
- \remove "Time_signature_engraver"
- \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
- \set Staff.midiInstrument = #"choir aahs"
- \key c \major
- \relative c''
- {
- % disable the following line to see the the noteheads while writing the song
- \NoNoteHead
- \override NoteHead.no-ledgers = ##t
-
- % The beam between 8th-notes is used to draw the push-line
- %How to fast write the push-lines:
- % 1. write repeatedly 'c c c c c c c c |' for the whole length of the song
- % 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
- % (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['
- % b) If a pull-part starts there, replace the 'c' by an 's'
- % 5. Switch into 'overwrite-mode' by pressing the 'ins' key.
- % 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)
- % 10. re-enable the line \NoNoteHead
- \autoBeamOff
- \ZeroBeam
- s8 s s e[ c c c c c c e] | s s s s s
- }
-}
-
-%{
-%}
-
-% 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
-% or the macros 'conv2diaton push.bsh' and 'conv2diaton pull.bsh'
-% Tips:
-% - In jEdit Search & Replace mark the Option 'Keep Dialog'
-
-AccordionTabTwoCBesDur = {
- % pull 1
- %<f' bes'>8 <f' a'>8 <d' bes'>8 |
- <g'' a''>8 <g'' b''>8 <e'' a''>8 |
- % push 2
- %<g' c''>4 <f' d''> <g' ees''> <f' a'> |
- <g'' a''>4 <d'' eisis''> <g'' bisis''> <d'' f''> |
- % pull 3
- % <f' bes'>2 r8 }
- <g'' a''>2 r8 }
-
-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
- % Tips:
- % - In jEdit Search & Replace mark the Option 'Keep Dialog'
- % -
- \AccordionTabTwoCBesDur
-}
-
-
-
-\layout {
- \context {
- \Score
- % The vertical line (simulating a bar-line) in
- % the staffBassRhytm is a gridline
- \consists "Grid_line_span_engraver"
- }
- \context {
- \Staff
- \consists "Grid_point_engraver"
- gridInterval = #(ly:make-moment 4/4) % 4/4 - tact. How many beats per bar
- % The following line has to be adjusted O-F-T-E-N.
- \override GridPoint.Y-extent = #'(-2 . -21)
- }
- \context {
- \ChoirStaff
- \remove "System_start_delimiter_engraver"
- }
-}
-
-staffVoice = \new Staff = astaffvoice {
- \time 4/4
- \set Staff.instrumentName = "Voice"
- \set Staff.midiInstrument = "voice oohs"
- \key bes \major
- \partial 8*3
- \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 }
- \bar "|."
- }
-}
-
-staffAccordionMel =
-\new Staff \with { \remove "Clef_engraver" } {
- \accidentalStyle forget %Set the accidentals (Vorzeichen) for each note,
- %do not remember them for the rest of the measure.
- \time 4/4
- \set Staff.instrumentName="Accordion"
- \set Staff.midiInstrument="voice oohs"
- \key c \major
- \clef treble
- { \AccordionTab \bar "|." }
-}
-
-AltOn =
-#(define-music-function (parser location mag) (number?)
- #{ \override Stem.length = #(* 7.0 mag)
- \override NoteHead.font-size =
-#(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #})
-
-AltOff = {
- \revert Stem.length
- \revert NoteHead.font-size
-}
-
-BassRhytm = {s4 s8 | c2 c2 | c2 s8 }
-LyricBassRhythmI= \lyricmode { c b | c }
-
-staffBassRhytm =
-\new Staff = staffbass \with { \remove "Clef_engraver" } {
- % This is not a RhythmicStaff because it must be possible to append lyrics.
-
- \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
- % Search for 'grid' in this page to find all related functions
- \time 4/4
- {
- \context Voice = "VoiceBassRhytm"
- \stemDown \AltOn #0.6
- \relative c''
- {
- \BassRhytm
- }
- \AltOff
- \bar "|."
- }
-}
-
-\score {
- \new ChoirStaff <<
- \harmonies
- \staffVoice
- \context Lyrics = "lmelodyVoi"
- \with { alignBelowContext = astaffvoice }
- \lyricsto melodyVoi \verse
- \staffAccordionMel
- \staffTabLine
- \staffBassRhytm
- \context Lyrics = "lBassRhytmAboveI"
- \with { alignAboveContext = staffbass }
- \lyricsto VoiceBassRhytm \LyricBassRhythmI
- >>
-}
-%}
-
+++ /dev/null
-\version "2.16.0"
-
-\header {
- texidoc = "
-Beamlets can be set to point in the direction of the beat to which they
-belong. The first beam avoids sticking out flags (the default);
-the second beam strictly follows the beat.
-"
-
- doctitle = "Strict beat beaming"
-
- lsrtags = "rhythms"
-}
-
-
-\relative c'' {
- \time 6/8
- a8. a16 a a
- \set strictBeatBeaming = ##t
- a8. a16 a a
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "editorial-annotations, text, fretted-strings, tweaks-and-overrides, scheme-language"
-
- texidoc = "
-Make an extender line for string number indications, showing that a
-series of notes is supposed to be played all on the same string.
-
-"
- doctitle = "String number extender lines"
-}
-
-stringNumberSpanner =
-#(define-music-function (parser location StringNumber) (string?)
- #{
- \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 }
- #})
-
-
-\relative c {
- \clef "treble_8"
- \stringNumberSpanner "5"
- \textSpannerDown
- a8\startTextSpan
- b c d e f\stopTextSpan
- \stringNumberSpanner "4"
- g\startTextSpan a
- bes4 a g2\stopTextSpan
-}
-
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "expressive-marks"
-
- texidoc = "
-Vocal and wind music frequently uses a tick mark as a breathing sign. This
-indicates a breath that subtracts a little time from the previous note rather
-than causing a short pause, which is indicated by the comma breath mark. The
-mark can be moved up a little to take it away from the stave.
-"
- doctitle = "Using a tick as the breath mark symbol"
-}
-
-\relative c'' {
- c2
- \breathe
- d2
- \override BreathingSign.Y-offset = #2.6
- \override BreathingSign.text =
- \markup { \musicglyph #"scripts.tickmark" }
- c2
- \breathe
- d2
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "rhythms, tweaks-and-overrides"
-
- texidoc = "
-Alternative styles of flag on eighth and shorter notes can be displayed
-by overriding the @code{stencil} property of @code{Flag}. Valid values
-are @code{modern-straight-flag} and @code{old-straight-flag}.
-
-"
- doctitle = "Using alternative flag styles"
-}
-
-testnotes = {
- \autoBeamOff
- c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
-}
-
-\relative c' {
- \time 2/4
- \testnotes
-
- \override Flag.stencil = #modern-straight-flag
- \testnotes
-
- \override Flag.stencil = #old-straight-flag
- \testnotes
-
- \revert Flag.stencil
- \testnotes
-}
-
+++ /dev/null
-\version "2.18.0"
-
-\header {
- lsrtags = "specific-notation, workaround"
-
- texidoc = "
-
-Often it is easier to manage line and page-breaking information by
-keeping it separate from the music by introducing an extra voice
-containing only skips along with the @code{\break},
-@code{pageBreak} and other layout information.
-
-This pattern becomes especially helpful when overriding
-@code{line-break-system-details} and the other useful but long
-properties of @code{NonMusicalPaperColumnGrob}.
-"
- doctitle = "Using an extra voice for breaks"
-}
-
-music = \relative c'' { c4 c c c }
-
-\header { tagline = ##f }
-\paper { left-margin = 0\mm }
-\book {
- \score {
- \new Staff <<
- \new Voice {
- s1 * 2 \break
- s1 * 3 \break
- s1 * 6 \break
- s1 * 5 \break
- }
- \new Voice {
- \repeat unfold 2 { \music }
- \repeat unfold 3 { \music }
- \repeat unfold 6 { \music }
- \repeat unfold 5 { \music }
- }
- >>
- }
-}
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "rhythms"
-
- texidoc = "
-The slash through the stem found in acciaccaturas can be applied in
-other situations.
-
-"
- doctitle = "Using grace note slashes with normal heads"
-}
-
-\relative c'' {
- \override Flag.stroke-style = #"grace"
- c8( d2) e8( f4)
-}
-
+++ /dev/null
-\version "2.17.27"
-
-\header {
- lsrtags = "spacing, tweaks-and-overrides, workaround"
-
- texidoc = "
-All @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
-placed with their reference line at least @code{'staff-padding} from
-the staff, unless other notation forces them to be farther.
-Setting @code{'staff-padding} to a sufficiently large value aligns the
-dynamics.
-
-The same idea, together with @code{\\textLengthOn}, is used to align
-the text scripts along their baseline.
-
-"
- doctitle = "Vertically aligned dynamics and textscripts"
-}
-\markup \vspace #1 %avoid LSR-bug
-
-music = \relative c' {
- a'2\p b\f
- e4\p f\f\> g, b\p
- c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
-}
-
-{
- \music
- \break
- \override DynamicLineSpanner.staff-padding = #3
- \textLengthOn
- \override TextScript.staff-padding = #1
- \music
-}
+++ /dev/null
-\version "2.16.0"
-
-\header {
- lsrtags = "winds"
-
- texidoc="
-The snippet below produces a list of all possible keys and key
-settings for woodwind diagrams as defined in
-@file{scm/define-woodwind-diagrams.scm}. The list will be displayed
-in the log file, but not in the music. If output to the console
-is wanted, omit the @code{(current-error-port)} from the commands.
-"
- doctitle = "Woodwind diagrams key lists"
-}
-
-#(print-keys-verbose 'piccolo (current-error-port))
-#(print-keys-verbose 'flute (current-error-port))
-#(print-keys-verbose 'flute-b-extension (current-error-port))
-#(print-keys-verbose 'tin-whistle (current-error-port))
-#(print-keys-verbose 'oboe (current-error-port))
-#(print-keys-verbose 'clarinet (current-error-port))
-#(print-keys-verbose 'bass-clarinet (current-error-port))
-#(print-keys-verbose 'low-bass-clarinet (current-error-port))
-#(print-keys-verbose 'saxophone (current-error-port))
-#(print-keys-verbose 'soprano-saxophone (current-error-port))
-#(print-keys-verbose 'alto-saxophone (current-error-port))
-#(print-keys-verbose 'tenor-saxophone (current-error-port))
-#(print-keys-verbose 'baritone-saxophone (current-error-port))
-#(print-keys-verbose 'bassoon (current-error-port))
-#(print-keys-verbose 'contrabassoon (current-error-port))
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.7
-\version "2.17.7"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "contexts-and-engravers, editorial-annotations, repeats, staff-notation"
texidoc = "
-This snippet demonstrates the use of the @code{Measure_counter_engraver} to
-number groups of successive measures. Any stretch of measures may be numbered,
-whether consisting of repetitions or not.
+This snippet demonstrates the use of the
+@code{Measure_counter_engraver} to number groups of successive
+measures. Any stretch of measures may be numbered, whether consisting
+of repetitions or not.
+
+
+The engraver must be added to the appropriate context. Here, a
+@code{Staff} context is used; another possibility is a @code{Dynamics}
+context.
-The engraver must be added to the appropriate context. Here, a @code{Staff}
-context is used; another possibility is a @code{Dynamics} context.
The counter is begun with @code{\\startMeasureCount} and ended with
-@code{\\stopMeasureCount}. Numbering will start by default with @code{1}, but
-this behavior may be modified by overriding the @code{count-from} property.
+@code{\\stopMeasureCount}. Numbering will start by default with
+@code{1}, but this behavior may be modified by overriding the
+@code{count-from} property.
-When a measure extends across a line break, the number will appear twice, the
-second time in parentheses.
+
+When a measure extends across a line break, the number will appear
+twice, the second time in parentheses.
"
doctitle = "Numbering groups of measures"
} % begin verbatim
-
\layout {
\context {
\Staff
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "pitches"
+
texidoc = "
-Easy notation note heads use the @code{note-names} property
-of the @code{NoteHead} object to determine what appears inside
-the note head. By overriding this property, it is possible
-to print numbers representing the scale-degree.
+Easy notation note heads use the @code{note-names} property of the
+@code{NoteHead} object to determine what appears inside the note head.
+By overriding this property, it is possible to print numbers
+representing the scale-degree.
+
+A simple engraver can be created to do this for every note head object
+it sees.
-A simple engraver can be created to do this for every note head
-object it sees.
"
doctitle = "Numbers as easy note heads"
} % begin verbatim
-
#(define Ez_numbers_engraver
(make-engraver
(acknowledgers
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.27
-\version "2.17.27"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "headword"
<e e,>4 )
r4 r2
}
-
>>
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.18
-\version "2.17.18"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "rhythms, tweaks-and-overrides"
doctitle = "Positioning multi-measure rests"
} % begin verbatim
-
\relative c'' {
% Multi-measure rests by default are set under the fourth line
R1
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.14
-\version "2.17.14"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "expressive-marks"
texidoc = "
-Hairpin dynamics may be created in a variety of styles
+Hairpin dynamics may be created in a variety of styles.
"
doctitle = "Printing hairpins in various styles"
} % begin verbatim
-
\relative c'' {
\override Hairpin.stencil = #flared-hairpin
a4\< a a a\f
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.13
-\version "2.17.13"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "pitches, staff-notation"
Quotations take into account the transposition of both source and
target. In this example, all instruments play sounding middle C; the
target is an instrument in F. The target part may be transposed using
-@code{\\transpose}. In this case, the quoted pitches will stay
-unchanged.
+@code{\\transpose}. In this case, all the pitches (including the
+quoted ones) are transposed.
+
"
doctitle = "Quoting another voice with transposition"
} % begin verbatim
-
\addQuote clarinet {
\transposition bes
\repeat unfold 8 { d'16 d' d'8 }
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "rhythms"
doctitle = "Redefining grace note global defaults"
} % begin verbatim
-
startAcciaccaturaMusic = {
<>(
\override Flag.stroke-style = #"grace"
creating-metronome-marks-in-markup-mode.ly
engraving-ties-manually.ly
engraving-tremolos-with-floating-beams.ly
-entering-several-tuplets-using-only-one--times-command.ly
+entering-several-tuplets-using-only-one--tuplet-command.ly
flat-flags-and-beam-nibs.ly
forcing-rehearsal-marks-to-start-from-a-given-letter-or-number.ly
generating-custom-flags.ly
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
- lsrtags = "template, real-music, specific-notation"
+ lsrtags = "real-music, specific-notation, template"
texidoc = "
A template to write a score for a diatonic accordion.
3. For each pull- or push-part translate the piano notes to the
according tabulature representation.
-
-This snippet comes with a useful optional macro for the jEdit text
-editor.
-
"
doctitle = "Score for diatonic accordion"
} % begin verbatim
-
verse = \lyricmode { Wie gross bist du! Wie gross bist du! }
harmonies = \new ChordNames \chordmode {
}
}
-%{
-%}
-
% 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
\lyricsto VoiceBassRhytm \LyricBassRhythmI
>>
}
-%}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
+ lsrtags = "rhythms"
+
texidoc = "
Beamlets can be set to point in the direction of the beat to which they
-belong. The first beam avoids sticking out flags (the default);
-the second beam strictly follows the beat.
-"
+belong. The first beam avoids sticking out flags (the default); the
+second beam strictly follows the beat.
+"
doctitle = "Strict beat beaming"
-
- lsrtags = "rhythms"
} % begin verbatim
-
-
\relative c'' {
\time 6/8
a8. a16 a a
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
- lsrtags = "editorial-annotations, text, fretted-strings, tweaks-and-overrides, scheme-language"
+ lsrtags = "editorial-annotations, fretted-strings, scheme-language, text, tweaks-and-overrides"
texidoc = "
Make an extender line for string number indications, showing that a
doctitle = "String number extender lines"
} % begin verbatim
-
stringNumberSpanner =
-#(define-music-function (parser location StringNumber) (string?)
- #{
- \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 }
- #})
+ #(define-music-function (parser location StringNumber) (string?)
+ #{
+ \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 }
+ #})
\relative c {
combining-two-parts-on-the-same-staff.ly
-entering-several-tuplets-using-only-one--times-command.ly
+entering-several-tuplets-using-only-one--tuplet-command.ly
extending-a-trillspanner.ly
vertical-aligned-staffgroups-without-connecting-systemstartbar.ly
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "expressive-marks"
texidoc = "
-Vocal and wind music frequently uses a tick mark as a breathing sign. This
-indicates a breath that subtracts a little time from the previous note rather
-than causing a short pause, which is indicated by the comma breath mark. The
-mark can be moved up a little to take it away from the stave.
+Vocal and wind music frequently uses a tick mark as a breathing sign.
+This indicates a breath that subtracts a little time from the previous
+note rather than causing a short pause, which is indicated by the comma
+breath mark. The mark can be moved up a little to take it away from
+the stave.
+
"
doctitle = "Using a tick as the breath mark symbol"
} % begin verbatim
-
\relative c'' {
c2
\breathe
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "rhythms, tweaks-and-overrides"
doctitle = "Using alternative flag styles"
} % begin verbatim
-
testnotes = {
\autoBeamOff
c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.18.0
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
\version "2.18.0"
\header {
lsrtags = "specific-notation, workaround"
texidoc = "
-
Often it is easier to manage line and page-breaking information by
keeping it separate from the music by introducing an extra voice
-containing only skips along with the @code{\\break},
-@code{pageBreak} and other layout information.
+containing only skips along with the @code{\\break}, @code{pageBreak}
+and other layout information.
This pattern becomes especially helpful when overriding
@code{line-break-system-details} and the other useful but long
properties of @code{NonMusicalPaperColumnGrob}.
+
"
doctitle = "Using an extra voice for breaks"
} % begin verbatim
-
music = \relative c'' { c4 c c c }
-\header { tagline = ##f }
-\paper { left-margin = 0\mm }
-\book {
- \score {
- \new Staff <<
- \new Voice {
- s1 * 2 \break
- s1 * 3 \break
- s1 * 6 \break
- s1 * 5 \break
- }
- \new Voice {
- \repeat unfold 2 { \music }
- \repeat unfold 3 { \music }
- \repeat unfold 6 { \music }
- \repeat unfold 5 { \music }
- }
- >>
- }
+\score {
+ \new Staff <<
+ \new Voice {
+ s1 * 2 \break
+ s1 * 3 \break
+ s1 * 6 \break
+ s1 * 5 \break
+ }
+ \new Voice {
+ \repeat unfold 2 { \music }
+ \repeat unfold 3 { \music }
+ \repeat unfold 6 { \music }
+ \repeat unfold 5 { \music }
+ }
+ >>
}
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.6
-\version "2.17.6"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "rhythms"
doctitle = "Using grace note slashes with normal heads"
} % begin verbatim
-
\relative c'' {
\override Flag.stroke-style = #"grace"
c8( d2) e8( f4)
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.17.27
-\version "2.17.27"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "spacing, tweaks-and-overrides, workaround"
texidoc = "
All @code{DynamicLineSpanner} objects (hairpins and dynamic texts) are
placed with their reference line at least @code{'staff-padding} from
-the staff, unless other notation forces them to be farther.
-Setting @code{'staff-padding} to a sufficiently large value aligns the
-dynamics.
+the staff, unless other notation forces them to be farther. Setting
+@code{'staff-padding} to a sufficiently large value aligns the dynamics.
The same idea, together with @code{\\textLengthOn}, is used to align
the text scripts along their baseline.
doctitle = "Vertically aligned dynamics and textscripts"
} % begin verbatim
-\markup \vspace #1 %avoid LSR-bug
-
music = \relative c' {
a'2\p b\f
e4\p f\f\> g, b\p
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.16.0
-\version "2.16.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
\header {
lsrtags = "winds"
- texidoc="
-The snippet below produces a list of all possible keys and key
-settings for woodwind diagrams as defined in
-@file{scm/define-woodwind-diagrams.scm}. The list will be displayed
-in the log file, but not in the music. If output to the console
-is wanted, omit the @code{(current-error-port)} from the commands.
+ texidoc = "
+The snippet below produces a list of all possible keys and key settings
+for woodwind diagrams as defined in
+@code{scm/define-woodwind-diagrams.scm}. The list will be displayed in
+the log file, but not in the music. If output to the console is
+wanted, omit the @code{(current-error-port)} from the commands.
+
"
doctitle = "Woodwind diagrams key lists"
} % begin verbatim
-
#(print-keys-verbose 'piccolo (current-error-port))
#(print-keys-verbose 'flute (current-error-port))
#(print-keys-verbose 'flute-b-extension (current-error-port))
#(print-keys-verbose 'baritone-saxophone (current-error-port))
#(print-keys-verbose 'bassoon (current-error-port))
#(print-keys-verbose 'contrabassoon (current-error-port))
+
+\score {c''1}