bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSR 631 corrupts accidental positions7 / no effect with stems


From: Neil Puttock
Subject: Re: LSR 631 corrupts accidental positions7 / no effect with stems
Date: Sat, 5 Feb 2011 16:57:50 +0000

On 1 February 2011 09:15, -Eluze <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]