Re: hidden notes causing semiquaver stems to lengthen

2013-02-09 Thread Keith OHara
Kevin Patrick Barry barryk2 at tcd.ie writes:

 I frequently have to layer many horizontal brackets over a small number
 of notes (motivic analysis), and to do this I use extra voices with hidden
 notes.  Mostly this works fine, but sometimes the hidden notes cause some
 odd behaviour with stem lengths in the main part.

 \version 2.16.1
 bracketsa = \relative c'' {
   \override NoteColumn #'ignore-collision = ##t
   \hideNotes
   s8 c16\startGroup d b\stopGroup
 }

\hideNotes  actually makes the notes, and beams and stems, transparent.
This means they still get space reserved, they just don't print.  
Sometimes people need exactly this, but here the extra (transparent) 
beams force your visible stems to lengthen to make room.

You can remove the beams and stems, etc., in this second voice entirely:

bracketsa = \relative c'' {
 \override NoteColumn #'ignore-collision = ##t
 \override NoteHead #'transparent = ##t
 \override Stem #'stencil = ##f
 \override Dots #'stencil = ##f
 \override Beam #'stencil = ##f
 \override Flag #'stencil = ##f
 \override Rest #'stencil = ##f

 s8 c16\startGroup d b\stopGroup  }



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


hidden notes causing semiquaver stems to lengthen

2013-02-06 Thread Kevin Patrick Barry
Dear LilyPond users,

I frequently have to layer many horizontal brackets over a small number of
notes (motivic analysis), and to do this I use extra voices with hidden
notes.  Mostly this works fine, but sometimes the hidden notes cause some
odd behaviour with stem lengths in the main part.  I've pasted a tinyish
example at the end of this message which should reproduce it.

In the past I've used a variety of workarounds, such as choosing hidden
notes that are far away from the main ones (in the example below, if you
raise the hidden notes by two octaves the problem disappears, but extra
space is added above the staff), or sometimes by removing the stem stencil
of the hidden notes, but these solutions don't always work, so I'd like to
understand what's going on a bit more.  If anyone can shed some light it
would solve many problems for me.

Regards,
Kevin Barry

 \version 2.16.1


melody = \relative c'' {

d16\startGroup e c\stopGroup d b

}


bracketsa = \relative c'' {

\override NoteColumn #'ignore-collision = ##t

\hideNotes

s8 c16\startGroup d b\stopGroup

}


\score {

\new Staff 

\new Voice { \melody }

\new Voice { \bracketsa }



}


\layout {

\context {

\Voice

\consists Horizontal_bracket_engraver

}

}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user