From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lilypond
Date: Sat, 20 Aug 2011 04:19:50 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1108200411240.16403@nqv-gnoyrg.tngrjnl.2jver.arg> (raw)
In-Reply-To: <61F3C339-8949-48E3-97DD-8C6071958B29@fiee.net>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 3422 bytes --]
On Fri, 19 Aug 2011, Henning Hraban Ramm wrote:
> Am 2011-08-19 um 17:08 schrieb Aditya Mahajan:
>
> But - can you even support different setups, say
>
> \startlilypondpreamble
> global settings for everything
> \stoplilypondpreamble
>
> \startlilypondpreamble[snippet]
> global settings for snippets
> \stoplilypondpreamble
>
> \startlilypondpreamble[fullscore]
> global settings for full scores
> \stoplilypondpreamble
>
> \startlilypond[setup=fullscore]
> the score
> \stoplilypond
>
> etc.
Yes. I can support the following syntax:
\startbuffer[snippets] ... \stopbuffer
\startbuffer[fullscore] ... \stopbuffer
\startbuffer[common] ... \stopbuffer
\startlilypond[bufferbefore={snippets,common}, bufferafter={....}]
....
\stoplilypond
(In fact, provide similar support for anything defined using the filter
module).
>> The other thing is to be able to change linespace, papersize, offset, etc
>> using parameters, so that one can say:
>> \startlilypond[linespace=...]
>> ...
>> \stoplilypond
>> This will require some lua side processing.
>
> You mean, translate ConTeXt-style settings to LilyPond settings, like we did
> with the old module?
Yes.
> That wouldn’t make much sense. LilyPond just has too much settings. And most
> of them you can set in different ways. To fully support this, you’d need a
> complete LilyPond parser including Scheme. And a small set of settings is
> never the right set for everyone.
OK.
> Ok, there are a few settings that we could translate, e.g. set ConTeXt’s main
> fonts also for LilyPond.
Agreed. Does anyone know how to get the name of the current font in MkIV?
> We don’t need LilyPond's layout settings, as long as we go the
> \externalfigure path.
But I think that at least automatic paper size settings (set paper
size to be equal to text area) are needed.
> I don’t know a solution for line breaking of scores - if you’d set LilyPond’s
> page size to ConTeXt’s remaining space, it would stay the same for the second
> page. Perhaps we can get single lines (systems) and let ConTeXt to the page
> breaking. I’ll look into that.
OK.
> But I don’t know how we can make it "right" WRT LilyPond snippets - I’d want
> to align a note systems’s base line with ConTeXt’s text baseline, but the
> height and clipping of a snippet depends on the visible elements. Without
> some picture analysis (or runtime data from LilyPond, that doesn’t exist
> AFAIK) you need to adjust your snippets manually.
Does lilypond-book handle this at all? It does not appear to. Manually
adjusting each inline snippet will be too much work, IMO.
>> Do you know how lilypond numbers its output files. In some cases I get
>> filename-1.pdf sometimes not. Can I force it to always give filename-1.pdf
>> or always give filename.pdf
>
> LilyPond adds a number to EPS, if there’s more that one page.
> But in my songbook setup, I always get a filename-temp-lilypond-##.eps plus
> an identical filename-temp-lilypond-##-1.eps
>
> When you order more than one \midi{} in several \score blocks, the first MIDI
> file is unnumbered, the second gets number 1 etc.; didn’t try with different
> \layout blocks yet.
>
> Seems like I must do some tests with multipage scores.
Look at the current version on github. It should be able to handle
multi-page snippets.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-08-20 8:19 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 22:32 buffer names in MKII Mojca Miklavec
2011-08-18 21:29 ` Aditya Mahajan
2011-08-19 7:53 ` Henning Hraban Ramm
2011-08-19 15:08 ` Lilypond (Re: buffer names in MKII) Aditya Mahajan
2011-08-19 20:18 ` Lilypond Henning Hraban Ramm
2011-08-20 8:19 ` Aditya Mahajan [this message]
2011-08-21 1:22 ` Lilypond David Wooten
2011-08-21 12:07 ` Lilypond Henning Hraban Ramm
2011-08-21 18:25 ` Lilypond Henning Hraban Ramm
2011-08-21 22:14 ` Lilypond Aditya Mahajan
2011-08-21 22:24 ` Lilypond Hans Hagen
2011-08-21 22:32 ` Lilypond Aditya Mahajan
2011-08-22 1:53 ` Lilypond Aditya Mahajan
2011-08-22 13:59 ` Lilypond Henning Hraban Ramm
2011-08-22 15:18 ` Lilypond Aditya Mahajan
2011-08-19 0:09 ` buffer names in MKII Aditya Mahajan
2011-08-19 7:53 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2014-06-08 22:31 Lilypond David Wooten
2014-06-10 9:53 ` Lilypond Henning Hraban Ramm
2014-06-10 18:26 ` Lilypond David Wooten
2014-06-11 8:51 ` Lilypond Henning Hraban Ramm
2014-06-12 17:00 ` Lilypond David Wooten
2014-06-12 17:37 ` Lilypond Henning Hraban Ramm
2014-06-12 20:21 ` Lilypond David Wooten
2007-08-26 22:35 lilypond Hans Hagen
2007-07-03 15:59 lilypond Wolfgang Werners-Lucchini
2007-07-06 20:25 ` lilypond Henning Hraban Ramm
2007-08-27 14:28 ` lilypond Mojca Miklavec
2007-08-27 10:28 ` lilypond Steffen Wolfrum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1108200411240.16403@nqv-gnoyrg.tngrjnl.2jver.arg \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).