+++ /dev/null
-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
-\version "2.11.38"
-
-\header {
- lsrtags = "guitar"
-
- texidoc = "
-To add fingerings to tablatures, you can use a combination of
-@code{\\markup} and @code{\\finger}.
-
-"
- doctitle = "Adding fingerings to tablatures"
-} % begin verbatim
-one = \markup { \finger "1" }
-two = \markup { \finger "2" }
-threeTwo = \markup { \column { \finger "3" \finger "2" } }
-threeFour = \markup { \column { \finger "3" \finger "4" } }
-
-\score {
- \context TabStaff {
- \stemUp
- e8\4^\one b\2 <e, g\3 e'\1>^>[ b\2 e\4]
- <a\3 fis'\1>^>^\threeTwo[ b\2 e\4]
- }
-}
--- /dev/null
+%% Do not edit this file; it is auto-generated from input/new
+%% This file is in the public domain.
+\version "2.11.43"
+\header {
+ lsrtags = "expressive-marks,text,tweaks-and-overrides"
+ texidoc = "
+Using Scheme code to override the stencil for @code{MetronomeMark}
+objects, this example allows the creation of metronome marks which include
+text directions. The function @code{\tempoChangeMarkup} is called with three
+strings: the text label, note duration, and beats per minute. To print the
+new metronome mark, this is followed by the standard @code{\tempo} command.
+"
+ doctitle = "Adding text indications to metronome marks"
+} % begin verbatim
+
+% Thanks to Alexander Kobel for this snippet
+
+tempoMarkLabelSize = #0
+tempoMarkNoteSize = #-6
+
+#(define (tempoChangeMarkupFactory grob label noteValue tempo)
+ (interpret-markup
+ (ly:grob-layout grob)
+ (ly:grob-alist-chain grob (ly:output-def-lookup (ly:grob-layout grob) 'text-font-defaults))
+ (markup
+ #:fontsize tempoMarkLabelSize #:italic #:concat (label (if (string-null? label) "(" " (" ))
+ #:hspace -1
+ #:fontsize tempoMarkNoteSize #:general-align Y DOWN #:note noteValue UP
+ #:fontsize tempoMarkLabelSize #:italic #:concat( "= " tempo ")" )
+ )
+ ))
+
+#(define (tempoChangeStencil label noteValue tempo)
+ (lambda (grob)
+ (tempoChangeMarkupFactory grob label noteValue tempo)
+ ))
+
+tempoChangeMarkup = #(define-music-function (parser location label noteValue tempo) (string? string? string?)
+ #{
+ \once \override Score.MetronomeMark #'stencil = #(tempoChangeStencil $label $noteValue $tempo)
+ #})
+
+\relative c' {
+ \time 4/4
+ \clef treble
+ % initialize the override
+ \tempoChangeMarkup #"Moderato" #"4" #"63"
+ % markup is printed
+ \tempo 4 = 63
+ c4 d e f
+ g a b c
+ \time 6/4
+ \mark \default
+ \tempoChangeMarkup #"presto" #"2." #"90"
+ \tempo 2. = 90
+ c2. g \break
+ e \tempoChangeMarkup #"handling collision with RehearsalMark" #"4" #"120" \tempo 4 = 120 c
+ \time 4/4
+ \mark \default
+ c1
+}
<<
\new Staff \new Voice = melody \relative c '{ c4 d e f g f e d c1 }
\new Lyrics \lyricsto melody { aa aa aa aa aa aa aa aa aa }
->>
% Reducing the minimum space below the staff and above the lyrics:
-<<
\new Staff \with {
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 4) }
\new Voice = melody \relative c' { c4 d e f g f e d c1 }
\version "2.11.38"
\header {
- lsrtags = "expressive-marks"
+ lsrtags = "winds"
texidoc = "
Breathing signs are available in different tastes: commas (default),
and a fermata.
"
- doctitle = "Caesura (\"railtracks\") with fermata"
+ doctitle = "Caesura \"railtracks\" with fermata"
} % begin verbatim
{
c''2.
\version "2.11.38"
\header {
- lsrtags = "simultaneous-notes, chords, piano-music"
+ lsrtags = "simultaneous-notes, chords"
texidoc = "
Clusters are a device to denote that a complete range of notes is to be
adding-a-figured-bass-above-or-below-the-notes.ly
adding-an-extra-staff-at-a-line-break.ly
adding-an-extra-staff.ly
-vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
-changing-time-signatures-inside-a-polymetric-section-using--compressmusic.ly
mensurstriche-layout-bar-lines-between-the-staves.ly
+changing-time-signatures-inside-a-polymetric-section-using--compressmusic.ly
engravers-one-by-one.ly
use-square-bracket-at-the-start-of-a-staff-group.ly
+vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
nesting-staves.ly
\version "2.11.38"
\header {
- lsrtags = "editorial-and-educational-use, chords, piano-music"
+ lsrtags = "editorial-and-educational-use, chords"
texidoc = "
The placement of fingering numbers can be controlled precisely.
--- /dev/null
+%% Do not edit this file; it is auto-generated from input/new
+%% This file is in the public domain.
+\version "2.11.39"
+\header {
+ lsrtags = "expressive-marks,text,tweaks-and-overrides"
+ texidoc = "
+Unlike text scripts, rehearsal marks cannot be stacked at a particular point
+in a score: only one @code{RehearsalMark} object is created. Using an
+invisible measure and bar line, an extra rehearsal mark can be added, giving
+the appearance of two marks in the same column.
+
+This method may also prove useful for placing rehearsal marks at both the
+end of one system and the start of the following system.
+"
+ doctitle = "Creating simultaneous rehearsal marks"
+} % begin verbatim
+
+% Thanks to Risto Vääräniemi for this snippet
+
+\paper { ragged-right = ##t }
+
+{
+ \key a \major
+ \set Score.markFormatter = #format-mark-box-letters
+ \once \override Score.RehearsalMark #'outside-staff-priority = #5000
+ \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
+ \once \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
+ \mark \markup { \bold "Senza denti" }
+
+ % the hidden measure and bar line
+ \once \override Score.TimeSignature #'stencil = ##f
+ \time 1/16
+ s16 \bar ""
+
+ \time 4/4
+ \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
+ \once \override Score.RehearsalMark #'break-align-symbols = #'(bar-line)
+ \mark \markup { \box \bold "Intro" }
+ d'1
+ \mark \default
+ d'
+}
\version "2.11.38"
\header {
- lsrtags = "vocal-music, piano-music, strings, midi"
+ lsrtags = "vocal-music, midi"
texidoc = "
Problem: How to know which @code{midiInstrument} would be best for your
embedding-native-postscript-in-a--markup-block.ly
default-direction-of-stems-on-the-center-line-of-the-staff.ly
changing-a-single-notes-size-in-a-chord.ly
+grid-lines-emphasizing-rhythms-and-notes-synchronization.ly
controlling-the-placement-of-chord-fingerings.ly
allowing-fingerings-to-be-printed-inside-the-staff.ly
blanking-staff-lines-using-the--whiteout-command.ly
-grid-lines-emphasizing-rhythms-and-notes-synchronization.ly
grid-lines-changing-their-appearance.ly
adding-beams,-slurs,-ties-etc.-when-using-tuplet-and-non-tuplet-rythms..ly
changing-the-appearance-of-a-slur-from-solid-to-dotted-or-dashed.ly
caesura-railtracks-with-fermata.ly
-piano-template-with-centered-dynamics.ly
creating-real-parenthesized-dynamics.ly
-breathing-signs.ly
-contemporary-glissando.ly
center-text-below-hairpin-dynamics.ly
+contemporary-glissando.ly
adding-parentheses-around-an-expressive-mark-or-chordal-note.ly
+adding-text-indications-to-metronome-marks.ly
line-arrows.ly
changing--flageolet-mark-size.ly
+piano-template-with-centered-dynamics.ly
+creating-simultaneous-rehearsal-marks.ly
broken-crescendo-hairpin.ly
letter-tablature-formatting.ly
-jazz-combo-template.ly
-adding-fingerings-to-tablatures.ly
\version "2.11.38"
\header {
- lsrtags = "piano-music, percussion, guitar, template"
+ lsrtags = "percussion, template"
texidoc = "
This is quite an advanced template, for a jazz ensemble. Note that all
piano-template-with-centered-dynamics.ly
-clusters.ly
-piano-template-with-centered-lyrics.ly
-vocal-ensemble-template-with-automatic-piano-reduction.ly
-piano-template-simple.ly
-controlling-the-placement-of-chord-fingerings.ly
-piano-template-with-melody-and-lyrics.ly
-jazz-combo-template.ly
-demo-midiinstruments.ly
\version "2.11.38"
\header {
- lsrtags = "guitar"
+ lsrtags = "fretted-strings"
texidoc = "
You can format a tablature with letters instead of numbers - so that
0->a, 1->b, 2->c, etc.
\version "2.11.38"
\header {
- lsrtags = "piano-music, template"
+ lsrtags = "template"
texidoc = "
Here is a simple piano staff with some notes.
\version "2.11.38"
\header {
- lsrtags = "expressive-marks,piano-music,template"
+ lsrtags = "expressive-marks,keyboards,template"
texidoc = "
Many piano scores have the dynamics centered between the two staves.
This requires a bit of tweaking to implement, but since the template is
\version "2.11.38"
\header {
- lsrtags = "text, piano-music, template"
+ lsrtags = "text, template"
texidoc = "
Instead of having a full staff for the melody and lyrics, you can place
\version "2.11.38"
\header {
- lsrtags = "vocal-music, piano-music, template"
+ lsrtags = "vocal-music, template"
texidoc = "
Here is a typical song format: one staff with the melody and lyrics,
ottava-text.ly
tweaking-clef-properties.ly
preventing-extra-naturals-from-being-automatically-added.ly
-generating-random-notes.ly
ambitus-with-multiple-voices.ly
+generating-random-notes.ly
dodecaphonic-style-accidentals-for-each-note-including-naturals.ly
preventing-natural-signs-from-being-printed-when-the-key-signature-changes.ly
quoting-another-voice-with-transposition.ly
adding-an-extra-staff.ly
changing-the-staff-size.ly
use-square-bracket-at-the-start-of-a-staff-group.ly
+quoting-another-voice-with-transposition.ly
quoting-another-voice.ly
volta-multi-staff.ly
inserting-score-fragments-above-a-staff,-as-markups.ly
-quoting-another-voice-with-transposition.ly
nesting-staves.ly
non-traditional-key-signatures.ly
making-some-staff-lines-thicker-than-the-others.ly
\version "2.11.38"
\header {
- lsrtags = "strings, template"
+ lsrtags = "template"
texidoc = "
This template demonstrates a simple string quartet. It also uses a
\version "2.11.38"
\header {
- lsrtags = "strings, template"
+ lsrtags = "template"
texidoc = "
The \"String quartet template\" snippet produces a nice string quartet,
piano-template-with-centered-dynamics.ly
single-staff-template-with-notes-and-lyrics.ly
single-staff-template-with-only-notes.ly
-piano-template-with-centered-lyrics.ly
+jazz-combo-template.ly
score-for-diatonic-accordion.ly
piano-template-simple.ly
-string-quartet-template-with-separate-parts.ly
-ancient-notation-template----modern-transcription-of-gregorian-music.ly
ancient-notation-template----modern-transcription-of-mensural-music.ly
-piano-template-with-melody-and-lyrics.ly
+ancient-notation-template----modern-transcription-of-gregorian-music.ly
+single-staff-template-with-notes-and-chords.ly
string-quartet-template-simple.ly
single-staff-template-with-notes,-lyrics,-and-chords.ly
-single-staff-template-with-notes-and-chords.ly
-vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
-jazz-combo-template.ly
+piano-template-with-melody-and-lyrics.ly
+string-quartet-template-with-separate-parts.ly
vocal-ensemble-template.ly
+vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
+piano-template-with-centered-lyrics.ly
vocal-ensemble-template-with-automatic-piano-reduction.ly
creating-text-spanners.ly
creating-real-parenthesized-dynamics.ly
-ottava-text.ly
embedding-native-postscript-in-a--markup-block.ly
center-text-below-hairpin-dynamics.ly
demonstrating-all-headers.ly
printing-marks-at-the-end-of-a-line-or-a-score.ly
changing-the-default-text-font-family.ly
-how-to-put-ties-between-syllables-in-lyrics.ly
+combining-two-parts-on-the-same-staff.ly
aligning-and-centering-instrument-names.ly
outputting-the-version-number.ly
formatting-lyrics-syllables.ly
-combining-two-parts-on-the-same-staff.ly
+adding-text-indications-to-metronome-marks.ly
+how-to-put-ties-between-syllables-in-lyrics.ly
combining-dynamics-with-markup-texts.ly
vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
aligning-marks-with-various-notation-objects.ly
markup-lines.ly
-piano-template-with-centered-lyrics.ly
+ottava-text.ly
+creating-simultaneous-rehearsal-marks.ly
three-sided-box.ly
+piano-template-with-centered-lyrics.ly
utf-8.ly
blanking-staff-lines-using-the--whiteout-command.ly
printing-marks-on-every-staff.ly
display-bracket-with-only-one-staff-in-a-system.ly
-time-signature-in-parentheses.ly
+rhythmic-slashes.ly
changing-the-default-text-font-family.ly
drawing-boxes-around-grobs.ly
manually-controlling-beam-positions.ly
transcription-of-ancient-music-with-incipit.ly
alignment-vertical-spacing.ly
drawing-circles-around-various-objects.ly
+adding-text-indications-to-metronome-marks.ly
creating-text-spanners.ly
caesura-railtracks-with-fermata.ly
changing-form-of-multi--measure-rests.ly
-rhythmic-slashes.ly
+time-signature-in-parentheses.ly
changing-a-single-notes-size-in-a-chord.ly
+creating-simultaneous-rehearsal-marks.ly
nesting-staves.ly
-string-quartet-template-simple.ly
-string-quartet-template-with-separate-parts.ly
-demo-midiinstruments.ly
+
\version "2.11.38"
\header {
- lsrtags = "vocal-music, piano-music, template"
+ lsrtags = "vocal-music, template"
texidoc = "
This template adds an automatic piano reduction to the standard SATB
single-staff-template-with-notes-and-lyrics.ly
adding-ambitus-per-voice.ly
skips-in-lyric-mode-2.ly
+skips-in-lyric-mode.ly
vocal-ensemble-template-with-automatic-piano-reduction.ly
-vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
+ambitus-with-multiple-voices.ly
how-to-put-ties-between-syllables-in-lyrics.ly
-piano-template-with-melody-and-lyrics.ly
+vertically-aligning-ossias-and-lyrics.ly
+vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly
single-staff-template-with-notes,-lyrics,-and-chords.ly
-ambitus-with-multiple-voices.ly
-demo-midiinstruments.ly
formatting-lyrics-syllables.ly
-vertically-aligning-ossias-and-lyrics.ly
+piano-template-with-melody-and-lyrics.ly
aligning-lyrics.ly
vocal-ensemble-template.ly
adjusting-lyrics-vertical-spacing.ly
-skips-in-lyric-mode.ly
+demo-midiinstruments.ly