On Sun, Apr 10, 2011 at 11:23 AM, Federico Bruni <fedel...@gmail.com> wrote: > I've seen an error in a snippet in NR 2.4.1, Default tablature: > http://lilypond.org/doc/v2.13/Documentation/notation/common-notation-for-fretted-strings#default-tablatures > > The section is Slides in tablature. > > There are two errors actually: > - last two 5 and 7 frets are printed badly (because of hideNotes, I > suppose) > - in slide into and slide from you shouldn't see the starting or ending > fret, so 0 should be removed > > This should work fine: > > hideFretNumber = { > \once \override TabNoteHead #'transparent = ##t > \once \override TabNoteHead #'whiteout = ##f > \once \override NoteHead #'transparent = ##t > \once \override NoteHead #'no-ledgers = ##t > \once \override Stem #'transparent = ##t > \once \override Accidental #'transparent = ##t > \once \override Glissando #'(bound-details left padding) = #0.3 %% > for slides from/into: it increases the lenght of glissando and make it > more visible > } > > slides = { > c'8\3(\glissando d'8\3) > c'8\3\glissando d'8\3 > \hideFretNumber > \grace { g16\3\glissando } > c'4\3 > \afterGrace d'4\3\glissando { > \stemDown \hideFretNumber > g16\3 } > } > > \score { > << > \new Staff { \clef "treble_8" \slides } > \new TabStaff { \slides } > >> > \layout { > \context { > \Score > \override Glissando #'minimum-length = #4 > \override Glissando #'springs-and-rods = > #ly:spanner::set-spacing-rods > \override Glissando #'thickness = #2 > } > } > }
Hi Federico, hi everybody, here's a patch for the documentation accordingly to what you proposed. I'm not entirely sure it's suitable to introduce a new function (or more exactly, I'm wondering if it shouldn't rather be added to music-function.ly instead). Not being a guitar player, I can't tell. (I've also amended the LSR snippet to add 'whiteout.) Cheers, Valentin.
From 9dc369ed783709313ac2f755a3bc3c2938451776 Mon Sep 17 00:00:00 2001 From: Federico Bruni <fedel...@gmail.com> Committer: Valentin Villenave <valen...@villenave.net> Date: Wed, 13 Apr 2011 09:59:40 +0200 Subject: [PATCH] Doc: improve "Slides in Tablature" snippet This replaces the \hideNotes trick with a new \hideFretNumber override. --- Documentation/snippets/slides-in-tablature.ly | 55 ++++++++++++++---------- 1 files changed, 32 insertions(+), 23 deletions(-) diff --git a/Documentation/snippets/slides-in-tablature.ly b/Documentation/snippets/slides-in-tablature.ly index f8ed58d..98d1d5d 100644 --- a/Documentation/snippets/slides-in-tablature.ly +++ b/Documentation/snippets/slides-in-tablature.ly @@ -26,31 +26,40 @@ Slides can be typeset in both @code{Staff} and @code{TabStaff} contexts: } % begin verbatim +hideFretNumber = { + \once \override TabNoteHead #'transparent = ##t + \once \override TabNoteHead #'whiteout = ##f + \once \override NoteHead #'transparent = ##t + \once \override NoteHead #'no-ledgers = ##t + \once \override Stem #'transparent = ##t + \once \override Accidental #'transparent = ##t + \once \override Glissando #'(bound-details left padding) = #0.3 + %% This makes glissandos more visible by increasing their length. +} + slides = { - c'8\3(\glissando d'8\3) - c'8\3\glissando d'8\3 - \hideNotes - \grace { g16\3\glissando } - \unHideNotes - c'4\3 - \afterGrace d'4\3\glissando { - \stemDown \hideNotes - g16\3 } - \unHideNotes + c'8\3(\glissando d'8\3) + c'8\3\glissando d'8\3 + \hideFretNumber + \grace { g16\3\glissando } + c'4\3 + \afterGrace d'4\3\glissando { + \stemDown \hideFretNumber + g16\3 } } \score { - << - \new Staff { \clef "treble_8" \slides } - \new TabStaff { \slides } - >> - \layout { - \context { - \Score - \override Glissando #'minimum-length = #4 - \override Glissando #'springs-and-rods = - #ly:spanner::set-spacing-rods - \override Glissando #'thickness = #2 - } - } + << + \new Staff { \clef "treble_8" \slides } + \new TabStaff { \slides } + >> + \layout { + \context { + \Score + \override Glissando #'minimum-length = #4 + \override Glissando #'springs-and-rods = + #ly:spanner::set-spacing-rods + \override Glissando #'thickness = #2 + } + } } -- 1.7.4.2
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel