lilypond-user
[Top][All Lists]
Advanced

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

Re: Redefining Lilyponds internal scheme functions from my .ly file


From: Thomas Morley
Subject: Re: Redefining Lilyponds internal scheme functions from my .ly file
Date: Sun, 12 Feb 2012 01:27:32 +0100

Hi Nils

2012/2/12 Nils <address@hidden>:
> Hello list,
>
> Figured Bass standalone sharps and flats are much too small and have
> the wrong position. I can change that in
> /scm/translation-functions.scm
> (define-public (format-bass-figure figure event context)
> line 147, change -2 2  to 0 0.
> and line 160 change 0.3 to 0.1
>
> Since there is a patch for this in the lilypond bugtracker, I think
> for over a year or several years now, someone does not want this in
> with a reason. However, I don't like to patch my Lilypond everytime I
> upgrade.
>
> Can I make these changes locally, attached to a .ly file so that I can
> send it around?
>
> Nils

1. Copy the definition of format-bass-figure in a file and name it,
perhaps myDefs.ly
2. Rename the definition. Perhaps #(define-public
(custom-format-bass-figure figure event context)
3. Add your changes/additions.
4. Include myDefs.ly in the current file you're working on.
5. Call it with figuredBassFormatter = #custom-format-bass-figure (in
\layout) or with
    \set figuredBassFormatter = #custom-format-bass-figure in a context.

Isn't tested, but should work.

HTH,
  Harm



reply via email to

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