lilypond-devel
[Top][All Lists]
Advanced

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

Re: do we want special versions of the accidentals for use with text?


From: address@hidden
Subject: Re: do we want special versions of the accidentals for use with text?
Date: Wed, 21 Sep 2011 10:14:43 +0200

On Sep 21, 2011, at 10:05 AM, Werner LEMBERG wrote:

>>> For figured bass, the situation is different: Here we use
>>> LilyPond's digit font, which is completely under our control, and
>>> having accidentals fitting those digits better is a good thing.
>> 
>> I will prepare shorter versions of accidentals.
> 
> Thanks!
> 
>> Would you help me with writing code that employs them?  I did a
>> quick glance at the code (chord-name-engraver,
>> figured-bass-engraver) but i don't know where to start.
> 
> Me neither :(
> 
> I would like to have 48h a day, then I could afford more time for
> LilyPond, learning to understand how engravers work behind the scenes.
> 

Hey Janek,

You wouldn't need to touch the engravers.  The changes would need to be made in 
standard-alteration-glyph-name-alist, which is found in output-lib.scm.  Just 
sub in the glyphs you want to use.  Note that this will have effects in other 
parts of the code (chord symbols, for example).

To limit your changes to figured bass stuff, check out format-bass-figure in 
translation-functions.scm.  The function alteration->text-accidental-markup is 
the one that ultimately leads to the accessing of 
standard-alteration-glyph-name-alist : you'd need to sub this function out with 
another one for the special figured bass figures.

Cheers,
MS


reply via email to

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