ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* t-lilypond, placement of oversized lines.
@ 2008-01-27  0:32 David Wooten
  2008-01-27  7:20 ` Thomas A. Schmitz
  0 siblings, 1 reply; 2+ messages in thread
From: David Wooten @ 2008-01-27  0:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Greetings all,

In tinkering around with the lilypond module, oversized lines of  
notation do not get adjusted into the left margin as this bit of code  
seems to be trying to achieve:

--->

%D
%D TODO: Get the relevant dimension directly from lilypond,
%D to place the instrument name into the left margin for
%D short snippets as well.
%D If we are not in the middle of some text, we have to check
%D whether lilypond created an image that is wider than requested:
%D It places the instrument names in the left margin.
%D
	\ifvmode
		\getfiguredimensions[\lily!filename.pdf]%
		\leavevmode%
		\newdimen\FigWidth
		\FigWidth=\figurewidth
		\ifdim\FigWidth>\localhsize
			\!!dimena=\localhsize
			\advance\!!dimena by-\FigWidth
			\noindent\hskip\!!dimena
		\fi
	\fi
	\externalfigure[\lily!img]%
	\egroup%
}%

<---

This includes lines which have an instrument name, as mentioned in the  
comments, and also includes piano notation, which has a special  
bracket on the left joining the two staffs.

Can anyone help me out here?

Best,
David
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: t-lilypond, placement of oversized lines.
  2008-01-27  0:32 t-lilypond, placement of oversized lines David Wooten
@ 2008-01-27  7:20 ` Thomas A. Schmitz
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas A. Schmitz @ 2008-01-27  7:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Jan 27, 2008, at 1:32 AM, David Wooten wrote:

> This includes lines which have an instrument name, as mentioned in the
> comments, and also includes piano notation, which has a special
> bracket on the left joining the two staffs.
>
> Can anyone help me out here?
>
> Best,
> David

No, I can't help, but I may have bad news for you: I played some with  
the lilypond module myself and found out that lilypond itself may be  
the culprit. lilypond can produce eps figures; that's the only way the  
output is cropped to just the figure and doesn't produce an entire  
page. Unfortunately, in my experiments, the bounding box which  
lilypond uses is always a bit too small, the elements you describe are  
always cut off at the left margin. You can try that by creating a  
standalone .ly file and running lilypond with the --backend=eps option  
on it, and you'll see the effect. I have tried with a number of  
options to modify this behavior of lilypond, but haven't had any  
success. Since lilypond is pretty broken on Os X 10.5 at the moment, I  
have given up for the time being.

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-27  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-27  0:32 t-lilypond, placement of oversized lines David Wooten
2008-01-27  7:20 ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).