On 1 February 2011 09:15, -Eluze <elu...@gmail.com> wrote:

> 1) with the code below the accidental is misplaced:
>
> \relative c' {
>  \hideCurvesFrom #'Voice.NoteHead #'(0.3 . 0.3) #'(0 . 0)
>  f2 ( gis4)
> }

I don't think there's any workaround for this short of manually
shifting the accidental since the skyline spacing code relies on
identifying the NoteHead stencil callback by name (i.e., it checks
that 'stencil is set to ly:note-head::print, which the \hideCurvesFrom
code changes).

> 2) the code:
>
> \relative c' {
>  \set tieWaitForNote = ##t
>  \hideCurvesFrom #'Stem #'(0.3 . 0.3) #'(0 . 0)
>  f2^~ \stemUp g4 b g f1
> }
>
> produces the error:
>
> Drawing systems...<string>:8:430: In procedure ly:stencil-extent in
> expression (ly:stencil-extent this-stil 0):
> <string>:8:430: Wrong type argument in position 1 (expecting Stencil): ()

The semibreve has an invisible stem, so there's no stencil created.
It's fixed in LSR.

\relative c' {
 \set tieWaitForNote = ##t
 % important: must call this override before
 % \hideCurvesFrom otherwise it interferes with
 % the stencil override
 \stemUp
 \hideCurvesFrom #'Stem #'(0.3 . 0.3) #'(0 . 0)
 f2^~ g4 b g f1
}

Cheers,
Neil

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to