]> git.donarmstrong.com Git - lilypond.git/commitdiff
LSR updates
authorPhil Holmes <mail@philholmes.net>
Thu, 10 Sep 2015 10:44:10 +0000 (11:44 +0100)
committerPhil Holmes <mail@philholmes.net>
Thu, 10 Sep 2015 10:44:10 +0000 (11:44 +0100)
Documentation/snippets/adding-markups-in-a-tablature.ly [new file with mode: 0644]
Documentation/snippets/automatically-changing-the-stem-direction-of-the-middle-note-based-on-the-melody.ly
Documentation/snippets/changing-ottava-text.ly [new file with mode: 0644]
Documentation/snippets/changing-the-default-bar-lines.ly [new file with mode: 0644]
Documentation/snippets/editorial-annotations.snippet-list
Documentation/snippets/fretted-strings.snippet-list
Documentation/snippets/pitches.snippet-list
Documentation/snippets/repeats.snippet-list
Documentation/snippets/staff-notation.snippet-list
Documentation/snippets/text.snippet-list
Documentation/snippets/tweaks-and-overrides.snippet-list

diff --git a/Documentation/snippets/adding-markups-in-a-tablature.ly b/Documentation/snippets/adding-markups-in-a-tablature.ly
new file mode 100644 (file)
index 0000000..a751f70
--- /dev/null
@@ -0,0 +1,48 @@
+%% 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, text, tweaks-and-overrides"
+
+  texidoc = "
+By default markups does not show in a tablature. To make them appear,
+simply use the command @code{\\revert TabStaff.TextScript.stencil}
+
+"
+  doctitle = "Adding markups in a tablature"
+} % begin verbatim
+
+%% http://lsr.di.unimi.it/LSR/Item?id=919
+% by P.P.Schneider on June 2014
+
+high  = { r4 r8 <g c'> q r8 r4 }
+
+low = { c4 r4 c8 r8 g,8 b, }
+
+pulse = { s8^"1" s^"&" s^"2" s^"&" s^"3" s^"&" s^"4" s^"&" }
+
+\score {
+ \new TabStaff {
+   \repeat unfold 2 << \high \\ \low \\ \pulse >>
+  }
+  \layout {
+    \context {
+      \TabStaff
+      \clef moderntab
+      \revert TextScript.stencil
+      \override TextScript.font-series = #'bold
+      \override TextScript.font-size = #-2
+      \override TextScript.color = #red
+
+    }
+    \context {
+      \Score
+      proportionalNotationDuration = #(ly:make-moment 1/8)
+    }
+  }
+}
index 4f830f0c8e52a63aed34b6e339c9039beedccaf0..4f7a59cae65addebc8eb6e75e7f62bbbbded374c 100644 (file)
@@ -29,6 +29,6 @@ Voice context and overriding the @code{neutral-direction} of Stem.
     \Voice
     \consists "Melody_engraver"
     \autoBeamOff
-    \stemNeutral
+    \override Stem.neutral-direction = #'()
   }
 }
diff --git a/Documentation/snippets/changing-ottava-text.ly b/Documentation/snippets/changing-ottava-text.ly
new file mode 100644 (file)
index 0000000..11101d4
--- /dev/null
@@ -0,0 +1,34 @@
+%% 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, text"
+
+  texidoc = "
+Internally, @code{\\ottava} sets the properties @code{ottavation} (for
+example, to @code{8va} or @code{8vb}) and @code{middleCPosition}.  To
+override the text of the bracket, set @code{ottavation} after invoking
+@code{\\ottava}.
+
+Short text is especially useful when a brief ottava is used.
+
+"
+  doctitle = "Changing ottava text"
+} % begin verbatim
+
+{
+  c'2
+  \ottava #1
+  \set Staff.ottavation = #"8"
+  c''2
+  \ottava #0
+  c'1
+  \ottava #1
+  \set Staff.ottavation = #"Text"
+  c''1
+}
diff --git a/Documentation/snippets/changing-the-default-bar-lines.ly b/Documentation/snippets/changing-the-default-bar-lines.ly
new file mode 100644 (file)
index 0000000..c2c04ea
--- /dev/null
@@ -0,0 +1,48 @@
+%% 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 = "repeats, staff-notation"
+
+  texidoc = "
+Default bar lines can be changed when re-defined in a score context.
+
+"
+  doctitle = "Changing the default bar lines"
+} % begin verbatim
+
+% http://lsr.di.unimi.it/LSR/Item?id=964
+%%=> http://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00126.html
+%%=> http://lilypond.1069038.n5.nabble.com/Changing-the-default-end-repeat-bracket-tc169357.html
+
+\layout {
+  \context {
+    \Score
+    %% Changing the defaults from engraver-init.ly
+    defaultBarType = #"!"
+    startRepeatType = #"[|:"
+    endRepeatType = #":|]"
+    doubleRepeatType = #":|][|:"
+  }
+}
+
+%% example:
+{
+  c'1
+  \repeat volta 2 { \repeat unfold 2 c' }
+  \repeat volta 2 { \repeat unfold 2 c' }
+  \alternative {
+    { c' }
+    {
+      %% v2.18 workaround
+      \once\override Score.VoltaBracket.shorten-pair = #'(1 . -1)
+      c'
+    }
+  }
+  \bar "|."
+}
index c8d2a9a51c4566c3925aa4d733c2965c3745b0c3..bfe4bfffdc32dd8c83dac03a2f0109bffb3616cb 100644 (file)
@@ -1,5 +1,6 @@
 adding-fingerings-to-a-score.ly
 adding-links-to-objects.ly
+adding-markups-in-a-tablature.ly
 allowing-fingerings-to-be-printed-inside-the-staff.ly
 alternative-bar-numbering.ly
 analysis-brackets-above-the-staff.ly
index 5f1f9f0cd69f9629a0ad2d373d2a13e25bcc6c10..782578103984e1c16f2c5a11200207e23fef8e00 100644 (file)
@@ -1,5 +1,6 @@
 adding-fingerings-to-a-score.ly
 adding-fingerings-to-tablatures.ly
+adding-markups-in-a-tablature.ly
 allowing-fingerings-to-be-printed-inside-the-staff.ly
 bar-chords-notation-for-guitar-with-text-spanner.ly
 changing-fret-orientations.ly
index fb072060bdb2c9d4af72dd31339b75576eef5dd5..7410307eb56c51fd12a96bef68c36872d8668d93 100644 (file)
@@ -5,6 +5,7 @@ ambitus-with-multiple-voices.ly
 ambitus.ly
 applying-note-head-styles-depending-on-the-step-of-the-scale.ly
 automatically-changing-the-stem-direction-of-the-middle-note-based-on-the-melody.ly
+changing-ottava-text.ly
 changing-the-ambitus-gap.ly
 changing-the-interval-of-lines-on-the-stave.ly
 clefs-can-be-transposed-by-arbitrary-amounts.ly
index d3fa46c992d25b0266a26c630f09713e82d5fddc..2bffa5d0334554bb763ddfc0cd0b02f1d1395718 100644 (file)
@@ -1,5 +1,6 @@
 adding-volta-brackets-to-additional-staves.ly
 centered-measure-numbers.ly
+changing-the-default-bar-lines.ly
 cross-staff-tremolos.ly
 engraving-tremolos-with-floating-beams.ly
 isolated-percent-repeats.ly
index be45c43b677edf752b205f97c3be32381a399526..038ba0bd15bc92b4f52c998ffd3d01e207a2a4de 100644 (file)
@@ -6,6 +6,7 @@ adding-orchestral-cues-to-a-vocal-score.ly
 adding-timing-marks-to-long-glissandi.ly
 alternative-bar-numbering.ly
 centered-measure-numbers.ly
+changing-the-default-bar-lines.ly
 changing-the-number-of-lines-in-a-staff.ly
 changing-the-staff-size.ly
 creating-blank-staves.ly
index 54ed786ca7aeb8b3a2b8566f7516f6450a19258e..380f0926740f78265b73541c52b68014501205df 100644 (file)
@@ -1,3 +1,4 @@
+adding-markups-in-a-tablature.ly
 adding-the-current-date-to-a-score.ly
 adjusting-lyrics-vertical-spacing.ly
 aligning-and-centering-instrument-names.ly
@@ -6,6 +7,7 @@ aligning-syllables-with-melisma.ly
 blanking-staff-lines-using-the--whiteout-command.ly
 center-text-below-hairpin-dynamics.ly
 centering-markup-on-note-heads-automatically.ly
+changing-ottava-text.ly
 changing-the-default-text-font-family.ly
 combining-dynamics-with-markup-texts.ly
 combining-two-parts-on-the-same-staff.ly
index bbda0d49ca7555e562d4269c8febc0f2fa43cf1b..71a02386c76ee5b228ab7e03e7509a9732073d42 100644 (file)
@@ -1,5 +1,6 @@
 adding-an-ottava-marking-to-a-single-voice.ly
 adding-links-to-objects.ly
+adding-markups-in-a-tablature.ly
 adding-timing-marks-to-long-glissandi.ly
 adjusting-grace-note-spacing.ly
 adjusting-lyrics-vertical-spacing.ly