From 84fa3cb9de968a45ef1bd07e9fe96cec1f3eaf87 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Mon, 17 Oct 2011 11:02:32 +0200 Subject: [PATCH] Fixes all once-Stem-now-Flag properties in the docs. --- ...modern-transcription-of-gregorian-music.ly | 61 +++- .../snippets/changing-fret-orientations.ly | 1 + .../snippets/chant-or-psalms-notation.ly | 47 ++- .../customizing-fretboard-fret-diagrams.ly | 1 + .../snippets/generating-custom-flags.ly | 44 +-- Documentation/snippets/jazz-combo-template.ly | 64 +++- ...invisible-with-the-transparent-property.ly | 18 +- ...modern-transcription-of-gregorian-music.ly | 94 ++++++ .../snippets/new/chant-or-psalms-notation.ly | 57 ++++ .../snippets/new/generating-custom-flags.ly | 62 ++++ .../snippets/new/jazz-combo-template.ly | 318 ++++++++++++++++++ ...invisible-with-the-transparent-property.ly | 38 +++ .../redefining-grace-note-global-defaults.ly | 76 +++++ .../new/score-for-diatonic-accordion.ly | 240 +++++++++++++ .../new/using-alternative-flag-styles.ly | 46 +++ ...ng-grace-note-slashes-with-normal-heads.ly | 39 +++ .../redefining-grace-note-global-defaults.ly | 65 +++- .../snippets/score-for-diatonic-accordion.ly | 20 +- .../snippets/using-alternative-flag-styles.ly | 41 ++- ...ng-grace-note-slashes-with-normal-heads.ly | 41 ++- 20 files changed, 1279 insertions(+), 94 deletions(-) create mode 100644 Documentation/snippets/new/ancient-notation-template----modern-transcription-of-gregorian-music.ly create mode 100644 Documentation/snippets/new/chant-or-psalms-notation.ly create mode 100644 Documentation/snippets/new/generating-custom-flags.ly create mode 100644 Documentation/snippets/new/jazz-combo-template.ly create mode 100644 Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly create mode 100644 Documentation/snippets/new/redefining-grace-note-global-defaults.ly create mode 100644 Documentation/snippets/new/score-for-diatonic-accordion.ly create mode 100644 Documentation/snippets/new/using-alternative-flag-styles.ly create mode 100644 Documentation/snippets/new/using-grace-note-slashes-with-normal-heads.ly diff --git a/Documentation/snippets/ancient-notation-template----modern-transcription-of-gregorian-music.ly b/Documentation/snippets/ancient-notation-template----modern-transcription-of-gregorian-music.ly index ecc6fc48f5..d4e5f1874e 100644 --- a/Documentation/snippets/ancient-notation-template----modern-transcription-of-gregorian-music.ly +++ b/Documentation/snippets/ancient-notation-template----modern-transcription-of-gregorian-music.ly @@ -1,12 +1,55 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Este ejemplo muestra cómo hacer una transcripción moderna de canto +gregoriano. El canto gregoriano no tiene compás ni plicas; utiliza +solamente cabezas de nota de blanca y de negra, y unas marcas +especiales que indican silencios de distintas longitudes. + +" + + doctitlees = "Plantilla para notación de música antigua (transcripción moderna de canto gregoriano)" + +%% Translation of GIT committish: 514674cb00c18629242dfcde0c1a4976758adc56 + texidocit = " +Questo esempio mostra come realizzare una trascrizione moderna di musica +gregoriana. La musica gregoriana non presenta suddivisione in misure né gambi; +utilizza soltanto le teste della minima e della semiminima, e dei segni +appositi che indicano pause di diversa lunghezza. + +" + doctitleit = "Modello per notazione antica -- trascrizione moderna di musica gregoriana" + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + + texidocde = " +Dieses Beispiel zeigt eine moderne Transkription des Gregorianischen +Chorals. Hier gibt es keine Takte, keine Notenhälse und es werden nur +halbe und Viertelnoten verwendet. Zusätzliche Zeichen zeigen die +Länge von Pausen an. +" + + doctitlede = "Vorlage für Alte Notation -- moderne Transkription des gregorianischen Chorals" + +%% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a + texidocfr = " +Voici comment vous pourriez transcrire du grégorien. Pour mémoire, il +n'y a en grégorien ni de découpage en mesure, ni de hampe ; seules +sont utilisées des têtes de note blanches ou noires, ainsi que des +signes spécifiques permettant d'indiquer des silences de différentes durées. + +" + doctitlefr = "Exemples de notation ancienne -- transcription moderne de musique grégorienne" + lsrtags = "vocal-music, ancient-notation, template" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -68,7 +111,8 @@ chant = \relative c' { f4 a2 \divisioMinima g4 b a2 f2 \divisioMaior g4( f) f( g) a2 \finalis -} +} % begin verbatim + verba = \lyricmode { Lo -- rem ip -- sum do -- lor sit a -- met @@ -85,6 +129,7 @@ verba = \lyricmode { \remove "Time_signature_engraver" \remove "Bar_engraver" \override Stem #'transparent = ##t + \override Flag #'transparent = ##t } \context { \Voice diff --git a/Documentation/snippets/changing-fret-orientations.ly b/Documentation/snippets/changing-fret-orientations.ly index a78787d1a6..678367165d 100644 --- a/Documentation/snippets/changing-fret-orientations.ly +++ b/Documentation/snippets/changing-fret-orientations.ly @@ -24,6 +24,7 @@ Ils s'aligneront par défaut sur la corde du haut ou le sommet du fret. + %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb texidoces = " diff --git a/Documentation/snippets/chant-or-psalms-notation.ly b/Documentation/snippets/chant-or-psalms-notation.ly index c7d95c7db4..8bdca34772 100644 --- a/Documentation/snippets/chant-or-psalms-notation.ly +++ b/Documentation/snippets/chant-or-psalms-notation.ly @@ -1,12 +1,40 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Este tipo de notación se utiliza para el canto de los Salmos, en +que las estrofas no siempre tienen la misma longitud. + +" + doctitlees = "Notación de responsos o salmos" + +%% Translation of GIT committish: ab9e3136d78bfaf15cc6d77ed1975d252c3fe506 + + texidocde = " +Diese Form der Notation wird benutzt für die Notation von Psalmen, in denen +die Strophen nicht die gleiche Länge haben. + +" + doctitlede = "Psalmennotation" + + +%% Translation of GIT committish: c1d5bb448321d688185e0c6b798575d4c325ae80 + texidocfr = " +Ce style de notation permet d'indiquer la mélodie d'une psalmodie +lorsque les strophes sont de longueur inégale. + +" + doctitlefr = "Notation pour psalmodie" + + lsrtags = "rhythms, vocal-music, ancient-notation, contexts-and-engravers" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -44,8 +72,9 @@ aren't always the same length. doctitle = "Chant or psalms notation" } % begin verbatim -stemOn = { \revert Staff.Stem #'transparent } -stemOff = { \override Staff.Stem #'transparent = ##t } +stemOn = { \revert Staff.Stem #'transparent \revert Staff.Flag #'transparent } % begin verbatim + +stemOff = { \override Staff.Stem #'transparent = ##t \override Staff.Flag #'transparent = ##t } \score { \new Staff \with { \remove "Time_signature_engraver" } diff --git a/Documentation/snippets/customizing-fretboard-fret-diagrams.ly b/Documentation/snippets/customizing-fretboard-fret-diagrams.ly index f818c943ec..976d678d62 100644 --- a/Documentation/snippets/customizing-fretboard-fret-diagrams.ly +++ b/Documentation/snippets/customizing-fretboard-fret-diagrams.ly @@ -25,6 +25,7 @@ l'instancier de manière explicite pour adapter ses propriétés. + %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb texidoces = " Se pueden establecer las propiedades de los diagramas de diff --git a/Documentation/snippets/generating-custom-flags.ly b/Documentation/snippets/generating-custom-flags.ly index 3668e9d48c..56b8325525 100644 --- a/Documentation/snippets/generating-custom-flags.ly +++ b/Documentation/snippets/generating-custom-flags.ly @@ -1,28 +1,30 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { lsrtags = "rhythms, tweaks-and-overrides" texidoc = " -The @code{flag} property of the Stem grob can be set to a custom scheme +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" } % begin verbatim -#(define-public (weight-flag stem-grob) - (let* ((log (- (ly:grob-property stem-grob 'duration-log) 2)) +#(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 stem-grob 'stroke-style)) + (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))) @@ -30,20 +32,22 @@ function to generate the glyph for the flag. % Create a flag stencil by looking up the glyph from the font -#(define (inverted-flag stem-grob) - (let* ((dir (if (eqv? (ly:grob-property stem-grob 'direction) UP) "d" "u")) - (flag (retrieve-glyph-flag "" dir "" stem-grob)) - (line-thickness (ly:staff-symbol-line-thickness stem-grob)) +#(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 stem-grob 'stroke-style)) + (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 } +snippetexamplenotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 } % begin verbatim + { \override Score.RehearsalMark #'self-alignment-X = #LEFT @@ -52,15 +56,15 @@ snippetexamplenotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 \snippetexamplenotes \mark "Custom flag: inverted" - \override Stem #'flag = #inverted-flag + \override Flag #'stencil = #inverted-flag \snippetexamplenotes \mark "Custom flag: weight" - \override Stem #'flag = #weight-flag + \override Flag #'stencil = #weight-flag \snippetexamplenotes \mark "Revert to normal" - \revert Stem #'flag + \revert Flag #'stencil \snippetexamplenotes } diff --git a/Documentation/snippets/jazz-combo-template.ly b/Documentation/snippets/jazz-combo-template.ly index 2d05280cb7..ae658f1b54 100644 --- a/Documentation/snippets/jazz-combo-template.ly +++ b/Documentation/snippets/jazz-combo-template.ly @@ -1,12 +1,57 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.15.7" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Ésta es una plantilla bastante avanzada, para un conjunto de +jazz. Observe que la notación de todos los instrumentos está en +@code{\\key c \\major} (Do mayor). Esto se refiere al tono de +concierto; la armadura se transporta automáticamente si la música está +dentro de una sección @code{\\transpose}. + +" + doctitlees = "Plantilla para combo de jazz" + + +%% Translation of GIT committish: 514674cb00c18629242dfcde0c1a4976758adc56 + texidocit = " +Ecco un modello piuttosto complesso, per un gruppo jazz. Si noti che tutti +gli strumenti sono in @code{\\key c \\major}. Si tratta della tonalità +reale; sarà trasposta automaticamente includendo la +musica all'interno di una sezione @code{\\transpose}. + +" + doctitleit = "Modello per combo jazz" + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + texidocde = " +Hier ist ein ziemlich kompliziertes Beispiel für ein Jazz-Ensemble. Achtung: +Alle Instrumente sind in @code{\\key c \major} (C-Dur) notiert. Das bezieht sich +auf die klingende Musik: LilyPond transponiert die Tonart automatisch, wenn +sich die Noten innerhalb eines @code{\\transpose}-Abschnitts befinden. + +" + + doctitlede = "Vorlage für Jazz-Combo" + +%% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a + texidocfr = " +Bien que compliqué de prime abord, voici un canevas tout à fait indiqué +pour les ensembles de jazz. Vous noterez que tous les instruments sont +notés en ut (@code{\\key c \major}), la tonalité de concert. Les notes +seront automatiquement transposée dès lors qu'elles seront inscrites +dans une section @code{\\transpose}. + +" + doctitlefr = "Symboles de jazz" + lsrtags = "keyboards, percussion, fretted-strings, template" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -73,7 +118,8 @@ music is within a @code{\\transpose} section. \column { "LilyPond example file by Amelie Zapf," "Berlin 07/07/2003" - } + } % begin verbatim + } } @@ -85,10 +131,12 @@ music is within a @code{\\transpose} section. sl = { \override NoteHead #'style = #'slash \override Stem #'transparent = ##t + \override Flag #'transparent = ##t } nsl = { \revert NoteHead #'style \revert Stem #'transparent + \revert Flag #'transparent } crOn = \override NoteHead #'style = #'cross crOff = \revert NoteHead #'style diff --git a/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly b/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly index 56dfbc6399..65df013548 100644 --- a/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly +++ b/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly @@ -1,10 +1,11 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides" @@ -35,7 +36,8 @@ in that voice, the tie appears to cross voices. \once \override Stem #'transparent = ##t \once \override Stem #'length = #8 g8 ~ g\noBeam - } + } % begin verbatim + \\ { b8 g g e diff --git a/Documentation/snippets/new/ancient-notation-template----modern-transcription-of-gregorian-music.ly b/Documentation/snippets/new/ancient-notation-template----modern-transcription-of-gregorian-music.ly new file mode 100644 index 0000000000..0b92fadecf --- /dev/null +++ b/Documentation/snippets/new/ancient-notation-template----modern-transcription-of-gregorian-music.ly @@ -0,0 +1,94 @@ +\version "2.15.15" + +\header { + lsrtags = "vocal-music, ancient-notation, template" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Este ejemplo muestra cómo hacer una transcripción moderna de canto +gregoriano. El canto gregoriano no tiene compás ni plicas; utiliza +solamente cabezas de nota de blanca y de negra, y unas marcas +especiales que indican silencios de distintas longitudes. + +" + + doctitlees = "Plantilla para notación de música antigua (transcripción moderna de canto gregoriano)" + +%% Translation of GIT committish: 514674cb00c18629242dfcde0c1a4976758adc56 + texidocit = " +Questo esempio mostra come realizzare una trascrizione moderna di musica +gregoriana. La musica gregoriana non presenta suddivisione in misure né gambi; +utilizza soltanto le teste della minima e della semiminima, e dei segni +appositi che indicano pause di diversa lunghezza. + +" + doctitleit = "Modello per notazione antica -- trascrizione moderna di musica gregoriana" + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + + texidocde = " +Dieses Beispiel zeigt eine moderne Transkription des Gregorianischen +Chorals. Hier gibt es keine Takte, keine Notenhälse und es werden nur +halbe und Viertelnoten verwendet. Zusätzliche Zeichen zeigen die +Länge von Pausen an. +" + + doctitlede = "Vorlage für Alte Notation -- moderne Transkription des gregorianischen Chorals" + +%% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a + texidocfr = " +Voici comment vous pourriez transcrire du grégorien. Pour mémoire, il +n'y a en grégorien ni de découpage en mesure, ni de hampe ; seules +sont utilisées des têtes de note blanches ou noires, ainsi que des +signes spécifiques permettant d'indiquer des silences de différentes durées. + +" + doctitlefr = "Exemples de notation ancienne -- transcription moderne de musique grégorienne" + + texidoc = " +This example demonstrates how to do modern transcription of Gregorian +music. Gregorian music has no measure, no stems; it uses only half and +quarter note heads, and special marks, indicating rests of different +length. + +" + doctitle = "Ancient notation template -- modern transcription of gregorian music" +} % begin verbatim + +\include "gregorian.ly" + +chant = \relative c' { + \set Score.timing = ##f + f4 a2 \divisioMinima + g4 b a2 f2 \divisioMaior + g4( f) f( g) a2 \finalis +} + +verba = \lyricmode { + Lo -- rem ip -- sum do -- lor sit a -- met +} + +\score { + \new Staff << + \new Voice = "melody" \chant + \new Lyrics = "one" \lyricsto melody \verba + >> + \layout { + \context { + \Staff + \remove "Time_signature_engraver" + \remove "Bar_engraver" + \override Stem #'transparent = ##t + \override Flag #'transparent = ##t + } + \context { + \Voice + \override Stem #'length = #0 + } + \context { + \Score + barAlways = ##t + } + } +} + diff --git a/Documentation/snippets/new/chant-or-psalms-notation.ly b/Documentation/snippets/new/chant-or-psalms-notation.ly new file mode 100644 index 0000000000..f210c1d2a8 --- /dev/null +++ b/Documentation/snippets/new/chant-or-psalms-notation.ly @@ -0,0 +1,57 @@ +\version "2.15.15" + +\header { + lsrtags = "rhythms, vocal-music, ancient-notation, contexts-and-engravers" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Este tipo de notación se utiliza para el canto de los Salmos, en +que las estrofas no siempre tienen la misma longitud. + +" + doctitlees = "Notación de responsos o salmos" + +%% Translation of GIT committish: ab9e3136d78bfaf15cc6d77ed1975d252c3fe506 + + texidocde = " +Diese Form der Notation wird benutzt für die Notation von Psalmen, in denen +die Strophen nicht die gleiche Länge haben. + +" + doctitlede = "Psalmennotation" + + +%% Translation of GIT committish: c1d5bb448321d688185e0c6b798575d4c325ae80 + texidocfr = " +Ce style de notation permet d'indiquer la mélodie d'une psalmodie +lorsque les strophes sont de longueur inégale. + +" + doctitlefr = "Notation pour psalmodie" + + + texidoc = " +This form of notation is used for the chant of the Psalms, where verses +aren't always the same length. + +" + doctitle = "Chant or psalms notation" +} % begin verbatim + +stemOn = { \revert Staff.Stem #'transparent \revert Staff.Flag #'transparent } +stemOff = { \override Staff.Stem #'transparent = ##t \override Staff.Flag #'transparent = ##t } + +\score { + \new Staff \with { \remove "Time_signature_engraver" } + { + \key g \minor + \cadenzaOn + \stemOff a'\breve bes'4 g'4 + \stemOn a'2 \bar "||" + \stemOff a'\breve g'4 a'4 + \stemOn f'2 \bar "||" + \stemOff a'\breve^\markup { \italic flexe } + \stemOn g'2 \bar "||" + } +} + diff --git a/Documentation/snippets/new/generating-custom-flags.ly b/Documentation/snippets/new/generating-custom-flags.ly new file mode 100644 index 0000000000..0593245730 --- /dev/null +++ b/Documentation/snippets/new/generating-custom-flags.ly @@ -0,0 +1,62 @@ +\version "2.15.15" + +\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" +} % begin verbatim + +#(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 +} + diff --git a/Documentation/snippets/new/jazz-combo-template.ly b/Documentation/snippets/new/jazz-combo-template.ly new file mode 100644 index 0000000000..398fc37106 --- /dev/null +++ b/Documentation/snippets/new/jazz-combo-template.ly @@ -0,0 +1,318 @@ +\version "2.15.15" + +\header { + lsrtags = "keyboards, percussion, fretted-strings, template" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " +Ésta es una plantilla bastante avanzada, para un conjunto de +jazz. Observe que la notación de todos los instrumentos está en +@code{\\key c \\major} (Do mayor). Esto se refiere al tono de +concierto; la armadura se transporta automáticamente si la música está +dentro de una sección @code{\\transpose}. + +" + doctitlees = "Plantilla para combo de jazz" + + +%% Translation of GIT committish: 514674cb00c18629242dfcde0c1a4976758adc56 + texidocit = " +Ecco un modello piuttosto complesso, per un gruppo jazz. Si noti che tutti +gli strumenti sono in @code{\\key c \\major}. Si tratta della tonalità +reale; sarà trasposta automaticamente includendo la +musica all'interno di una sezione @code{\\transpose}. + +" + doctitleit = "Modello per combo jazz" + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + texidocde = " +Hier ist ein ziemlich kompliziertes Beispiel für ein Jazz-Ensemble. Achtung: +Alle Instrumente sind in @code{\\key c \major} (C-Dur) notiert. Das bezieht sich +auf die klingende Musik: LilyPond transponiert die Tonart automatisch, wenn +sich die Noten innerhalb eines @code{\\transpose}-Abschnitts befinden. + +" + + doctitlede = "Vorlage für Jazz-Combo" + +%% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a + texidocfr = " +Bien que compliqué de prime abord, voici un canevas tout à fait indiqué +pour les ensembles de jazz. Vous noterez que tous les instruments sont +notés en ut (@code{\\key c \major}), la tonalité de concert. Les notes +seront automatiquement transposée dès lors qu'elles seront inscrites +dans une section @code{\\transpose}. + +" + doctitlefr = "Symboles de jazz" + + 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" +} % begin verbatim + +\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 + \override Stem #'transparent = ##t + \override Flag #'transparent = ##t +} +nsl = { + \revert NoteHead #'style + \revert Stem #'transparent + \revert Flag #'transparent +} +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 + hh4 hh + hh4 hh +} +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 { } +} + diff --git a/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly b/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly new file mode 100644 index 0000000000..f84fdedbc4 --- /dev/null +++ b/Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly @@ -0,0 +1,38 @@ +\version "2.15.15" + +\header { + lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides" + + texidoc = " +Setting the @code{transparent} property will cause an object to be +printed in @qq{invisible ink}: the object is not printed, but all its +other behavior is retained. The object still takes up space, it takes +part in collisions, and slurs, ties and beams can be attached to it. + + +This snippet demonstrates how to connect different voices using ties. +Normally, ties only connect two notes in the same voice. By +introducing a tie in a different voice, and blanking the first up-stem +in that voice, the tie appears to cross voices. + +" + doctitle = "Making an object invisible with the 'transparent property" +} % begin verbatim + +\relative c'' { + \time 2/4 + << + { + \once \override Stem #'transparent = ##t + \once \override Stem #'length = #8 + b8 ~ b\noBeam + \once \override Stem #'transparent = ##t + \once \override Stem #'length = #8 + g8 ~ g\noBeam + } + \\ + { + b8 g g e + } + >> +} diff --git a/Documentation/snippets/new/redefining-grace-note-global-defaults.ly b/Documentation/snippets/new/redefining-grace-note-global-defaults.ly new file mode 100644 index 0000000000..b3eb92ce56 --- /dev/null +++ b/Documentation/snippets/new/redefining-grace-note-global-defaults.ly @@ -0,0 +1,76 @@ +\version "2.15.15" + +\header { + lsrtags = "rhythms" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Los valores predeterminados para las notas de adorno están +almacenados en los identificadores @code{startGraceMusic}, +@code{stopGraceMusic}, @code{startAcciaccaturaMusic}, +@code{stopAcciaccaturaMusic}, @code{startAppoggiaturaMusic} y +@code{stopAppoggiaturaMusic}, que están definidos en el archivo +@file{ly/grace-init.ly}. Redefiniéndolos se pueden obtener otros +efectos. + +" + + doctitlees = "Redefinición de los valores globales predeterminados para notas de adorno" + + + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + texidocde = " +Die globalen Standardeinstellungen für Verzierungsnoten werden in +den Variablen@code{startGraceMusic}, @code{stopGraceMusic}, +@code{startAcciaccaturaMusic}, @code{stopAcciaccaturaMusic}, +@code{startAppoggiaturaMusic} und @code{stopAppoggiaturaMusic} +gespeichert, die in der Datei @file{ly/grace-init.ly} definiert +sind. Wenn man sie umdefiniert, können andere Effekte erreicht +werden. + +" + doctitlede = "Globale Umdefinition von Verzierungsnoten" + + + +%% Translation of GIT committish: 374d57cf9b68ddf32a95409ce08ba75816900f6b + texidocfr = " +Vous pouvez modifier les valeurs des variables @code{startGraceMusic}, +@code{stopGraceMusic}, @code{startAcciaccaturaMusic}, +@code{stopAcciaccaturaMusic}, @code{startAppoggiaturaMusic}, et +@code{stopAppoggiaturaMusic} afin d'en personnaliser les effets. Pour +plus de détails, voir le fichier @file{ly/grace-init.ly}. + +" + doctitlefr = "Redéfinition des réglages de mise en forme par défaut des notes d'ornement" + + 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" +} % begin verbatim + +startAcciaccaturaMusic = { + s1*0( + \override Flag #'stroke-style = #"grace" + \slurDashed +} + +stopAcciaccaturaMusic = { + \revert Flag #'stroke-style + \slurSolid + s1*0) +} + +\relative c'' { + \acciaccatura d8 c1 +} + diff --git a/Documentation/snippets/new/score-for-diatonic-accordion.ly b/Documentation/snippets/new/score-for-diatonic-accordion.ly new file mode 100644 index 0000000000..ecbde65dcf --- /dev/null +++ b/Documentation/snippets/new/score-for-diatonic-accordion.ly @@ -0,0 +1,240 @@ +\version "2.15.15" + +\header { + lsrtags = "template" + + 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" +} % begin verbatim + +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 = { \override Stem #'transparent = ##t \override Flag #'transparent = ##t } +NoNoteHead = \override NoteHead #'transparent = ##t +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 + %8 8 8 | + 8 8 8 | + % push 2 + %4 | + 4 | + % pull 3 + % 2 r8 } + 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" + { 8 8 8 | 4 | 2 r8 } + \bar "|." + } +} + +staffAccordionMel = +\new Staff \with { \remove "Clef_engraver" } { + #(set-accidental-style '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 + >> +} +%} + diff --git a/Documentation/snippets/new/using-alternative-flag-styles.ly b/Documentation/snippets/new/using-alternative-flag-styles.ly new file mode 100644 index 0000000000..0e4ad3c261 --- /dev/null +++ b/Documentation/snippets/new/using-alternative-flag-styles.ly @@ -0,0 +1,46 @@ +\version "2.15.15" + +\header { + lsrtags = "rhythms, tweaks-and-overrides" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Se pueden imprimir estilos alternativos del corchete o gancho de las +corcheas y figuras menores, mediante la sobreescritura de la propiedad +@code{stencil} del objeto @code{Flag}. Son valores válidos +@code{modern-straight-flag} y @code{old-straight-flag}. + +" + doctitlees = "Uso de estilos alternativos para los corchetes" + + + + 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" +} % begin verbatim + +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 +} + diff --git a/Documentation/snippets/new/using-grace-note-slashes-with-normal-heads.ly b/Documentation/snippets/new/using-grace-note-slashes-with-normal-heads.ly new file mode 100644 index 0000000000..3905e81edb --- /dev/null +++ b/Documentation/snippets/new/using-grace-note-slashes-with-normal-heads.ly @@ -0,0 +1,39 @@ +\version "2.15.15" + +\header { + lsrtags = "rhythms" + +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Es posible aplicar la barrita que cruza la barra de las +acciaccaturas, en otras situaciones. + +" + + doctitlees = "Utilizar la barra que tacha las notas de adorno con notas normales" + + + +%% Translation of GIT committish: 374d57cf9b68ddf32a95409ce08ba75816900f6b + texidocfr = " +Le trait que l'on trouve sur les hampes des acciaccatures peut +être appliqué dans d'autres situations. + +" + + doctitlefr = "Utilisation de hampe barrée pour une note normale" + + texidoc = " +The slash through the stem found in acciaccaturas can be applied in +other situations. + +" + doctitle = "Using grace note slashes with normal heads" +} % begin verbatim + +\relative c'' { + \override Flag #'stroke-style = #"grace" + c8( d2) e8( f4) +} + diff --git a/Documentation/snippets/redefining-grace-note-global-defaults.ly b/Documentation/snippets/redefining-grace-note-global-defaults.ly index c46447e152..4c2f071f52 100644 --- a/Documentation/snippets/redefining-grace-note-global-defaults.ly +++ b/Documentation/snippets/redefining-grace-note-global-defaults.ly @@ -1,12 +1,56 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Los valores predeterminados para las notas de adorno están +almacenados en los identificadores @code{startGraceMusic}, +@code{stopGraceMusic}, @code{startAcciaccaturaMusic}, +@code{stopAcciaccaturaMusic}, @code{startAppoggiaturaMusic} y +@code{stopAppoggiaturaMusic}, que están definidos en el archivo +@file{ly/grace-init.ly}. Redefiniéndolos se pueden obtener otros +efectos. + +" + + doctitlees = "Redefinición de los valores globales predeterminados para notas de adorno" + + + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + texidocde = " +Die globalen Standardeinstellungen für Verzierungsnoten werden in +den Variablen@code{startGraceMusic}, @code{stopGraceMusic}, +@code{startAcciaccaturaMusic}, @code{stopAcciaccaturaMusic}, +@code{startAppoggiaturaMusic} und @code{stopAppoggiaturaMusic} +gespeichert, die in der Datei @file{ly/grace-init.ly} definiert +sind. Wenn man sie umdefiniert, können andere Effekte erreicht +werden. + +" + doctitlede = "Globale Umdefinition von Verzierungsnoten" + + + +%% Translation of GIT committish: 374d57cf9b68ddf32a95409ce08ba75816900f6b + texidocfr = " +Vous pouvez modifier les valeurs des variables @code{startGraceMusic}, +@code{stopGraceMusic}, @code{startAcciaccaturaMusic}, +@code{stopAcciaccaturaMusic}, @code{startAppoggiaturaMusic}, et +@code{stopAppoggiaturaMusic} afin d'en personnaliser les effets. Pour +plus de détails, voir le fichier @file{ly/grace-init.ly}. + +" + doctitlefr = "Redéfinition des réglages de mise en forme par défaut des notes d'ornement" + lsrtags = "rhythms" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -66,12 +110,13 @@ other effects may be obtained. startAcciaccaturaMusic = { s1*0( - \override Stem #'stroke-style = #"grace" + \override Flag #'stroke-style = #"grace" \slurDashed -} +} % begin verbatim + stopAcciaccaturaMusic = { - \revert Stem #'stroke-style + \revert Flag #'stroke-style \slurSolid s1*0) } diff --git a/Documentation/snippets/score-for-diatonic-accordion.ly b/Documentation/snippets/score-for-diatonic-accordion.ly index cc11068dcc..57a28c2875 100644 --- a/Documentation/snippets/score-for-diatonic-accordion.ly +++ b/Documentation/snippets/score-for-diatonic-accordion.ly @@ -1,10 +1,11 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { lsrtags = "template" @@ -60,7 +61,8 @@ editor. doctitle = "Score for diatonic accordion" } % begin verbatim -verse = \lyricmode { Wie gross bist du! Wie gross bist du! } +verse = \lyricmode { Wie gross bist du! Wie gross bist du! } % begin verbatim + harmonies = \new ChordNames \chordmode { \germanChords @@ -70,7 +72,7 @@ harmonies = \new ChordNames \chordmode { bes1 } -NoStem = \override Stem #'transparent = ##t +NoStem = { \override Stem #'transparent = ##t \override Flag #'transparent = ##t } NoNoteHead = \override NoteHead #'transparent = ##t ZeroBeam = \override Beam #'positions = #'(0 . 0) diff --git a/Documentation/snippets/using-alternative-flag-styles.ly b/Documentation/snippets/using-alternative-flag-styles.ly index a5329b989b..1600fc1568 100644 --- a/Documentation/snippets/using-alternative-flag-styles.ly +++ b/Documentation/snippets/using-alternative-flag-styles.ly @@ -1,12 +1,26 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Se pueden imprimir estilos alternativos del corchete o gancho de las +corcheas y figuras menores, mediante la sobreescritura de la propiedad +@code{flag} del objeto @code{Stem}. Son valores válidos +@code{modern-straight-flag} y @code{old-straight-flag}. + +" + doctitlees = "Uso de estilos alternativos para los corchetes" + + + lsrtags = "rhythms, tweaks-and-overrides" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -14,7 +28,7 @@ Se pueden imprimir estilos alternativos del corchete o gancho de las corcheas y figuras menores, mediante la sobreescritura de la propiedad -@code{flag} del objeto @code{Stem}. Son valores válidos +@code{stencil} del objeto @code{Flag}. Son valores válidos @code{modern-straight-flag} y @code{old-straight-flag}. " @@ -24,7 +38,7 @@ corcheas y figuras menores, mediante la sobreescritura de la propiedad texidoc = " Alternative styles of flag on eighth and shorter notes can be displayed -by overriding the @code{flag} property of @code{Stem}. Valid values +by overriding the @code{stencil} property of @code{Flag}. Valid values are @code{modern-straight-flag} and @code{old-straight-flag}. " @@ -34,19 +48,20 @@ are @code{modern-straight-flag} and @code{old-straight-flag}. testnotes = { \autoBeamOff c8 d16 c32 d64 \acciaccatura { c8 } d64 r4 -} +} % begin verbatim + \relative c' { \time 2/4 \testnotes - \override Stem #'flag = #modern-straight-flag + \override Flag #'stencil = #modern-straight-flag \testnotes - \override Stem #'flag = #old-straight-flag + \override Flag #'stencil = #old-straight-flag \testnotes - \revert Stem #'flag + \revert Flag #'stencil \testnotes } diff --git a/Documentation/snippets/using-grace-note-slashes-with-normal-heads.ly b/Documentation/snippets/using-grace-note-slashes-with-normal-heads.ly index 0042a9821b..2237407536 100644 --- a/Documentation/snippets/using-grace-note-slashes-with-normal-heads.ly +++ b/Documentation/snippets/using-grace-note-slashes-with-normal-heads.ly @@ -1,12 +1,34 @@ -%% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.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.14.0" +% 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.15.15 +\version "2.15.15" \header { +%% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb + texidoces = " + +Es posible aplicar la barrita que cruza la barra de las +acciaccaturas, en otras situaciones. + +" + + doctitlees = "Utilizar la barra que tacha las notas de adorno con notas normales" + + + +%% Translation of GIT committish: 374d57cf9b68ddf32a95409ce08ba75816900f6b + texidocfr = " +Le trait que l'on trouve sur les hampes des acciaccatures peut +être appliqué dans d'autres situations. + +" + + doctitlefr = "Utilisation de hampe barrée pour une note normale" + lsrtags = "rhythms" %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb @@ -39,7 +61,8 @@ other situations. } % begin verbatim \relative c'' { - \override Stem #'stroke-style = #"grace" + \override Flag #'stroke-style = #"grace" c8( d2) e8( f4) -} +} % begin verbatim + -- 2.39.2