Re: chords as markups?

2012-09-08 Thread Werner LEMBERG
. First of all, `make-XXX-stencil' seems to be completely undocumented. At least I can't find those functions in the reference (except some unsystematic usage here and there). I'm not sure who made them or when they made it into LilyPond, but you're certainly welcome to post a patch

Re: chords as markups?

2012-09-07 Thread luis jure
on 2012-09-06 at 07:41 m...@mikesolomon.org wrote: not pretty, but effective... thanks mike and robin for your suggestions, i need to study them to properly understand how (and why) they work. the truth is that, for the time being, i had solved my problem with lots of \halign, \lower,

Re: chords as markups?

2012-09-06 Thread David Kastrup
m...@mikesolomon.org m...@mikesolomon.org writes: not pretty, but effective... #(define (kludge grob) (ly:grob-set-property! grob 'text foo) (ly:text-interface::print grob)) \new ChordNames \chordmode { a b c:7 \once \override ChordNames . ChordName #'stencil =

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
The reason we can't just override the text property is because it is junked and reset internally in LilyPond. The unpure-pure-container makes sure that the chord is taken into account in horizontal spacing calculations. Anytime you override a stencil, try to use an unpure-pure-container.

Re: chords as markups?

2012-09-06 Thread m...@mikesolomon.org
On 6 sept. 2012, at 08:06, Werner LEMBERG w...@gnu.org wrote: The reason we can't just override the text property is because it is junked and reset internally in LilyPond. The unpure-pure-container makes sure that the chord is taken into account in horizontal spacing calculations. Anytime

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
The kludge I used is not documented anywhere - Aaah :-) I looked in define-grobs.scm, saw that it was using ly:text-interface::print but that there was no callback for text, which means that it must be set in the code. So the stencil function (or a number of other ones) could be hijacked

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
unpure-pure stuff is: http://lilypond.org/doc/v2.16/Documentation/notation/unpure_002dpure-containers Looking more closely at this page, I don't fully understand how it works. It is stated that the unpure-pure stuff affects y-axis calculations, but the given example adjusts the *width*: In

Re: chords as markups?

2012-09-06 Thread m...@mikesolomon.org
On 6 sept. 2012, at 08:49, Werner LEMBERG w...@gnu.org wrote: unpure-pure stuff is: http://lilypond.org/doc/v2.16/Documentation/notation/unpure_002dpure-containers Looking more closely at this page, I don't fully understand how it works. It is stated that the unpure-pure stuff affects

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
How comes? I think this deserves some more explanation. You can check out the CG link for info about how the lilypond spacing engine works with unpure-pure-containers. Will do. Maybe it is sufficient to simply add a link to

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
You can check out the CG link for info about how the lilypond spacing engine works with unpure-pure-containers. BTW, why the heck is this central part of LilyPond's layout engine located in the Contributor's Guide? This certainly belongs to the `notation' or `extending' guide, I reckon.

Re: chords as markups?

2012-09-06 Thread Werner LEMBERG
After reading the CG stuff, If you feel any info should be brought over to the users manual, post a patch and we can discuss it. And, of course, if after reading the CG stuff is still unclear on how they work, lemme know. OK, I've read it, and the concept of purity is explained well,

Re: chords as markups?

2012-09-06 Thread Robin Bannister
luis jure wrote: ... chords with some non-standard notation ... i'd be very grateful for any pointers. This an old annoyance [1]. You could try using my besideCN and replaceCN. See stencilCN.ly for recent code and a demo. Make sure you update it to your lilypond version. [2] Two

Re: chords as markups?

2012-09-06 Thread m...@mikesolomon.org
On 6 sept. 2012, at 09:49, Werner LEMBERG w...@gnu.org wrote: After reading the CG stuff, If you feel any info should be brought over to the users manual, post a patch and we can discuss it. And, of course, if after reading the CG stuff is still unclear on how they work, lemme know. OK,

chords as markups?

2012-09-05 Thread luis jure
i've been asked to typeset in lilypond a couple of chords with some non-standard notation (please see the attached image). i wouldn't know how to tweak the chord mode in lilypond to achieve this, so i was thinking of using \markup's. but elsewhere i'm using \chords, and the results are very

Re: chords as markups?

2012-09-05 Thread m...@mikesolomon.org
On 6 sept. 2012, at 00:11, luis jure l...@internet.com.uy wrote: i've been asked to typeset in lilypond a couple of chords with some non-standard notation (please see the attached image). i wouldn't know how to tweak the chord mode in lilypond to achieve this, so i was thinking of using