Hi,

I started using version 2.13.56 and I realized that this bug seems fixed:
http://code.google.com/p/lilypond/issues/detail?id=1459

As hideNotes/unHideNotes work fine in TabStaff now, I'm thinking that it would be nice to add a TabNoteHead override/revert in their definitions in property-init.ly

Two years ago Marc expressed some concern about including TabNoteHead inside hideNotes/unHideNotes, because unHideNotes reverts the transparency of objects (such as stems and dots) that shouldn't be displayed in TabStaff:
http://lists.gnu.org/archive/html/lilypond-user/2010-01/msg00634.html

I've made some tests and I think that there's no reason for such a concern. Everything looks fine to me (see the attached snippet).
Sure, I'm missing something :)

I believe that we don't need a specific command for hiding TabNoteHead.
I always use Staff and TabStaff: both should display (or hide) the same music, I can't imagine a situation where I'd like to hide a note in Staff and not in TabStaff.

What do you think about it?
\version "2.15.36"

hideNotes = {
  % hide notes, accidentals, etc.
  \override Dots #'transparent = ##t
  \override NoteHead #'transparent = ##t
  \override NoteHead #'no-ledgers = ##t
  \override Stem #'transparent = ##t
  \override Flag #'transparent = ##t
  \override Beam #'transparent = ##t
  \override Accidental #'transparent = ##t
  \override Rest #'transparent = ##t
  
  \override TabNoteHead #'transparent = ##t
}

unHideNotes = {
  \revert Accidental #'transparent
  \revert Beam #'transparent
  \revert Stem #'transparent
  \revert Flag #'transparent
  \revert NoteHead #'transparent
  \revert NoteHead #'no-ledgers
  \revert Dots #'transparent
  \revert Rest #'transparent
  
  \revert TabNoteHead #'transparent
}

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
}

\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
    }
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to