Re: Getting width of markup in a music function

2010-05-21 Thread Nathan Reed
On Mon, May 17, 2010 at 3:58 PM, Neil Puttock n.putt...@gmail.com wrote: Try this instead: \override MultiMeasureRestText #'springs-and-rods = #ly:multi-measure-rest::set-text-rods Using a multi-measure rest also seems to make the fermata appear off-center to the left of the rest, in

Re: Getting width of markup in a music function

2010-05-17 Thread Nathan Reed
On Wed, May 12, 2010 at 9:20 AM, Han-Wen Nienhuys hanw...@gmail.com wrote: why dont you use a MultiMeasureRestText as a basis? Thanks for the suggestion; I tried this briefly, but it doesn't seem to improve anything. The \textLengthOn is then ineffective since it only operates on TextScripts.

Re: Getting width of markup in a music function

2010-05-17 Thread Neil Puttock
On 17 May 2010 08:12, Nathan Reed nathaniel.r...@gmail.com wrote: Thanks for the suggestion; I tried this briefly, but it doesn't seem to improve anything.  The \textLengthOn is then ineffective since it only operates on TextScripts.  I tried replacing it with: \once\override

Re: Getting width of markup in a music function

2010-05-12 Thread Han-Wen Nienhuys
On Tue, May 11, 2010 at 4:17 AM, Nathan Reed nathaniel.r...@gmail.com wrote: I call it like: \narration r1 #On the branch... #...chirped the bird gaily. I'd like to expand the measure to be slightly wider than the text, so it doesn't collide with rehearsal marks. why dont you use a

Re: Getting width of markup in a music function

2010-05-11 Thread Mark Polesky
Nathan Reed wrote: I'd like to be able to compute the width of a markup inside a music function, so that I can size another element based on the size of the markup. Can we see some code? What is the music-function for? - Mark ___

Re: Getting width of markup in a music function

2010-05-11 Thread David Kastrup
Nathan Reed nathaniel.r...@gmail.com writes: Hello, I'd like to be able to compute the width of a markup inside a music function, so that I can size another element based on the size of the markup. I've figured out how to compute the size inside a markup command: (ly:stencil-extent

Re: Getting width of markup in a music function

2010-05-11 Thread Nathan Reed
On Mon, May 10, 2010 at 11:25 PM, Mark Polesky markpole...@yahoo.comwrote: Nathan Reed wrote: I'd like to be able to compute the width of a markup inside a music function, so that I can size another element based on the size of the markup. Can we see some code? What is the

Re: Getting width of markup in a music function

2010-05-11 Thread Carl Sorensen
On 5/11/10 1:17 AM, Nathan Reed nathaniel.r...@gmail.com wrote: Here's my code as it stands.  It produces a narration measure as shown in the image linked in my previous message. narration = #(define-music-function (parser location rest text1 text2)                         (ly:music?

Re: Getting width of markup in a music function

2010-05-11 Thread Nathan Reed
On Tue, May 11, 2010 at 5:21 AM, Carl Sorensen c_soren...@byu.edu wrote: What if you changed text-event to... Carl, thanks for the suggestion, but it doesn't have the desired effect - space does appear to one side of the text, but the rehearsal mark does not fall down into place (I guess the

Re: Getting width of markup in a music function

2010-05-11 Thread Carl Sorensen
Nathan Reed nathaniel.reed at gmail.com writes: Hello,I'd like to be able to compute the width of a markup inside a music function, so that I can size another element based on the size of the markup. I've figured out how to compute the size inside a markup command: (ly:stencil-extent

Getting width of markup in a music function

2010-05-10 Thread Nathan Reed
Hello, I'd like to be able to compute the width of a markup inside a music function, so that I can size another element based on the size of the markup. I've figured out how to compute the size inside a markup command: (ly:stencil-extent (interpret-markup layout props (markup ...)) X) This