lilypond-user
[Top][All Lists]
Advanced

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

Re: compilation problem when using add-grace-property


From: David Kastrup
Subject: Re: compilation problem when using add-grace-property
Date: Thu, 16 Jan 2014 13:33:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Gilberto Agostinho <address@hidden> writes:

> SOLVED, so I will post the solution here:
>
> David Kastrup wrote me "You are deleting all preexisting details without
> replacement". So basically what needed to be done is that I should have
> written...
>
> 'details 'beamed-lengths (3.26 3.26 3.26 3.26)
>
> ...instead of:
>
> 'details '(beamed-lengths (3.26 3.26 3.26 3.26))
>
> * * *
>
> So here is a functional code
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
> \version "2.18.0" 
> \score { 
>     { \grace {c''8 c''} c''1} 
>   \layout { 
>     \context { 
>       \Score 
>       \with{ $(add-grace-property 'Voice 'Stem 'details 'beamed-lengths
> (3.26 3.26 3.26 3.26)) } 
>     } 
>   } 
> } 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

Nice idea, doesn't work.  add-grace-property does not support
subproperties.  Instead you would have needed to write
(add-grace-property 'Voice 'Stem 'details
         '(
            ;; 3.5 (or 3 measured from note head) is standard length
            ;; 32nd, 64th, 128th flagged stems should be longer
            (lengths . (3.5 3.5 3.5 4.25 5.0 6.0))

            ;; FIXME.  3.5 yields too long beams (according to Ross and
            ;; looking at Baerenreiter examples) for a number of common
            ;; boundary cases.  Subtracting half a beam thickness fixes
            ;; this, but the bug may well be somewhere else.

            ;; FIXME this should come from 'lengths
            (beamed-lengths . (3.26 3.26 3.26 3.26))

            ;; The 'normal' minima
            (beamed-minimum-free-lengths . (1.83 1.5 1.25))
            ;;(beamed-minimum-free-lengths . (2.0 1.83 1.25))

            ;; The 'extreme case' minima
            (beamed-extreme-minimum-free-lengths . (2.0 1.25))

            ;; Stems in unnatural (forced) direction should be shortened by
            ;; one staff space, according to [Roush & Gourlay].
            ;; Flagged stems we shorten only half a staff space.
            (stem-shorten . (1.0 0.5))

            ))


-- 
David Kastrup



reply via email to

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