lilypond-user
[Top][All Lists]
Advanced

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

Defining grobs from a .ly file


From: Mike Solomon
Subject: Defining grobs from a .ly file
Date: Thu, 05 Aug 2010 12:49:32 +0200
User-agent: Microsoft-Entourage/11.4.0.080122

Hey all,
    Is there a way to define grobs from a .ly file?  Something like:

#(define (make-grob grob-entry)
   (let ((complete-grob-entry (completize-grob-entry grob-entry)))
   (set-object-property! (car complete-grob-entry) 'translation-type? list?)
   (set-object-property! (car complete-grob-entry) 'is-grob? #t))
   (set! all-grob-definitions (cons complete-grob-entry
                                    all-grob-definitions))
   (set! all-grob-descriptions (sort all-grob-descriptions alist<?))))

does not work because of certain non-public variables in
all-grob-descriptions and because completize-grob-entry is not public as
well.  Before I propose an enhancement that more or less recreates the above
in scm/define-grobs.scm, I wanted to check and see if anyone knew a better
way of doing it?

Cheers,
Mike





reply via email to

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