Re: Center-aligning objects in Scheme - slight improvement

2007-03-15 Thread Trevor Bača
On 3/15/07, Mats Bengtsson <[EMAIL PROTECTED]> wrote: I polished the function a bit further: hairpinWithCenteredText = #(define-music-function (parser location text) (markup?) #{ \override Voice.Hairpin #'stencil = #(lambda (grob) (ly:stencil-aligned-to (ly:stenc

Re: Center-aligning objects in Scheme - slight improvement

2007-03-15 Thread Mats Bengtsson
I polished the function a bit further: hairpinWithCenteredText = #(define-music-function (parser location text) (markup?) #{ \override Voice.Hairpin #'stencil = #(lambda (grob) (ly:stencil-aligned-to (ly:stencil-combine-at-edge (ly:stencil-aligned-to (ly:hairpin::p

Re: Center-aligning objects in Scheme

2007-03-12 Thread Han-Wen Nienhuys
2007/3/12, Maximilian Albert <[EMAIL PROTECTED]>: As I wrote in the last email, I am still uncertain if this is the most straightforward way to do it, and there might be somewhat simpler solutions. So I will wait a few day for any of the people who are more into it to make comments. If there is

Re: Center-aligning objects in Scheme - slight improvement

2007-03-12 Thread Maximilian Albert
Hi again, below is a slight improvement of the previous version which saves you from typing the whole function definition over and over again just to change the markup text. The function 'hairpinWithCenteredText' takes a single markup as argument. The usage should be straightforward (see the examp

Re: Center-aligning objects in Scheme

2007-03-12 Thread Maximilian Albert
Trevor Bača schrieb: > I saw Vivian's request a couple days' back and didn't think an answer > would be possible. To tell you the truth, when I read the request I was absolutely certain that an answer *is* possible because I am more and more getting the feeling that both lilypond's and scheme's p

Re: Center-aligning objects in Scheme

2007-03-11 Thread Trevor Bača
On 3/11/07, Maximilian Albert <[EMAIL PROTECTED]> wrote: Hi Vivian, > I posted a message to this list a few days ago about automatically > center-aligning some text under a Hairpin object (for example "molto" or > "poco" ) but haven't received any responses. Whilst I've found how to > combine ma

Re: Center-aligning objects in Scheme

2007-03-11 Thread Maximilian Albert
Hi Vivian, > I posted a message to this list a few days ago about automatically > center-aligning some text under a Hairpin object (for example "molto" or > "poco" ) but haven't received any responses. Whilst I've found how to > combine markups using combine-at-edge I can't find how to center-alig

Center-aligning objects in Scheme

2007-03-08 Thread Vivian Barty-Taylor
I posted a message to this list a few days ago about automatically center-aligning some text under a Hairpin object (for example "molto" or "poco" ) but haven't received any responses. Whilst I've found how to combine markups using combine-at-edge I can't find how to center-align one to the othe