[tablatures] snippet "Slides in tablature", NR 2.4.1

[ Thread Index | Date Index | More lilynet.net/tablatures Archives ]


Hi,

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

There's already a snippet for slides in tablature in the LSR:
http://lsr.dsi.unimi.it/LSR/Item?id=633 

which is not up-to-date, because the whiteout property is missing.
(BTW, who maintain the LSR?)

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
    }
  }
}




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/