From 2817ef1228cecd8b275fd666e0b5ba1bbd9406ce Mon Sep 17 00:00:00 2001 From: Federico Bruni Date: Tue, 1 May 2012 23:34:22 +0200 Subject: [PATCH] hideNotes should hide also TabNoteHead (issue 2480). Tablature example changed accordingly. Initial acciaccatura removed because it messed up the stem direction in voice one and produced a warning about clashing note columns. --- Documentation/ly-examples/tab-example.ly | 15 ++------------- ly/property-init.ly | 2 ++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Documentation/ly-examples/tab-example.ly b/Documentation/ly-examples/tab-example.ly index c2be0d7b59..a6822231f7 100644 --- a/Documentation/ly-examples/tab-example.ly +++ b/Documentation/ly-examples/tab-example.ly @@ -14,17 +14,6 @@ (- (ly:pitch-alteration right-pitch) (ly:pitch-alteration left-pitch)) 0 ))) -% Hide fret number: useful to draw slide into/from a casual point of -% the fretboard. -hideFretNumber = { - \once \override TabNoteHead #'transparent = ##t - \once \override TabNoteHead #'whiteout = ##f - \once \override NoteHead #'transparent = ##t - \once \override Stem #'transparent = ##t - \once \override Flag #'transparent = ##t - \once \override NoteHead #'no-ledgers = ##t -} - \paper { indent= #0 line-width= #180 @@ -36,7 +25,7 @@ upper= \relative c' { \set Staff.midiInstrument = #"acoustic guitar (steel)" \set fingeringOrientations = #'(left) - \partial 4. \acciaccatura c16 \glissando cis8 e4 + \partial 4. cis8 e4 < cis-1 g'-3 >2 s8 \grace a16 ( \glissando < b-2 >8\3 ) < d-1 > ( b ) < e-3 >\2 ( b ) \grace < ais-2 >16 ( \glissando a8 g ) s4. s4. < d'\3 g\2 >8 < gis,\4 d'\3 fis\2 >2\arpeggio ~ @@ -49,7 +38,7 @@ lower= \relative c { \partial 4. s4. s4 e,4 s2 s2 s8 < e'-3 >4. ~ - e4 \hideFretNumber \grace { b8 \glissando s4 } < e-2 >4\5 e,2 ~ + e4 \hideNotes \grace { b8 \glissando s4 } \unHideNotes < e-2 >4\5 e,2 ~ e2 < e'\6\harmonic > } diff --git a/ly/property-init.ly b/ly/property-init.ly index cec33d9a42..c0b352254a 100644 --- a/ly/property-init.ly +++ b/ly/property-init.ly @@ -248,6 +248,7 @@ hideNotes = { \override Beam #'transparent = ##t \override Accidental #'transparent = ##t \override Rest #'transparent = ##t + \override TabNoteHead #'transparent = ##t } unHideNotes = { \revert Accidental #'transparent @@ -258,6 +259,7 @@ unHideNotes = { \revert NoteHead #'no-ledgers \revert Dots #'transparent \revert Rest #'transparent + \revert TabNoteHead #'transparent } -- 2.39.5