2016-08-28 15:13 GMT+02:00 David Kastrup <[email protected]>:
> Thomas Morley <[email protected]> writes:

>> ;; Question
>> ;; why this mapping? Obviously `text' selects from this list, but why? --harm
>>            (texts
>>              (map
>>                (lambda (x) (ly:music-property x 'text))
>>                (extract-typed-music m 'text-script-event)))
>>            (text (if (null? texts) #f (if omit-root (car texts) texts))))
>>       (cons (if omit-root (cdr normalized) normalized) text)))
>
> Hm?  This looks for text scripts and takes the first one (if any) if
> omit-root is set (because of available rest arguments) or otherwise all
> scripts.

Well, I used some "newer" features like `extract-typed-music' to
rewrite the code from chord-name.scm, keeping all the original's
functionality.
But why is this functionality there at all?
In other words: I can't imagine a use-case where it matters.

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to