Janek Warchoł <janek.lilyp...@gmail.com> writes:

> On Thu, Nov 8, 2012 at 9:21 AM, David Kastrup <d...@gnu.org> wrote:
>
>> Then you are writing a quoted list here.  Inside of a quoted list, _all_
>> symbols are quoted, not referenced for their value.  So you need either
>> to use proper evaluated Scheme here, like
>> #(list (cons 'alignment-distances distances))
>
> indeed, this works:
>
> staffdist =
> #(define-music-function (parser location distances)
>                         (list?)
>                         #{
>                           \overrideProperty #"Score.NonMusicalPaperColumn"
>                           #'line-break-system-details
>                           #(list (cons 'alignment-distances distances))
>                         #})
>
> thank you!

Actually, if you were using 2.17.6, you could just write

staffdist =
#(define-music-function (parser location distances)
                        (list?)
                        #{
                          \overrideProperty
                          Score.NonMusicalPaperColumn.
                          line-break-system-details.alignment-distances
                          #distances
                        #})

since it was easy enough extending \overrideProperty for dealing with
subproperties that it would have been pointless not to support them.

-- 
David Kastrup


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

Reply via email to